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 `03657_gby_overflow__fuzz_0` ( `key` Nullable(UInt64), `val` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 2 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_1` ( `key` Nullable(UInt64), `val` FixedString(6) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_1` (`key` Nullable(UInt64), `val` FixedString(6)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS FixedString is only implemented for types String and FixedString: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3362: DB::(anonymous namespace)::FunctionCast::createFixedStringWrapper(std::shared_ptr const&, unsigned long) const @ 0x000000000710c5c5 5. /build/src/Functions/FunctionsConversion.cpp:5202: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb300 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 3 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_2` ( `key` Nullable(UInt64), `val` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 4 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_3` ( `key` UInt64, `val` Array(LowCardinality(UInt16)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_3` (`key` UInt64, `val` Array(LowCardinality(UInt16))) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 5 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_4` ( `key` UInt64, `val` Array(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_4` (`key` UInt64, `val` Array(UInt16)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 6 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_5` ( `key` UInt64, `val` LowCardinality(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_6` ( `key` Nullable(UInt64), `val` Array(LowCardinality(UInt16)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_6` (`key` Nullable(UInt64), `val` Array(LowCardinality(UInt16))) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 8 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_7` ( `key` UInt64, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_8` ( `key` Decimal(9, 8), `val` Array(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_8` (`key` Decimal(9, 8), `val` Array(UInt16)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 10 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_9` ( `key` Nullable(UInt64), `val` Float64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_10` ( `key` LowCardinality(Nullable(UInt64)), `val` Nullable(Float64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 12 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_11` ( `key` UInt64, `val` LowCardinality(Nullable(Float64)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_12` ( `key` UInt64, `val` LowCardinality(Nullable(Float64)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_13` ( `key` Tuple(UInt16, DateTime64(3), DateTime64(3), Decimal(76, 70), UInt16, Int256), `val` LowCardinality(Float64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_13` (`key` Tuple(UInt16, DateTime64(3), DateTime64(3), Decimal(76, 70), UInt16, Int256), `val` LowCardinality(Float64)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Tuple can only be performed between tuple types or from String. Left type: UInt64, right type: Tuple(UInt16, DateTime64(3), DateTime64(3), Decimal(76, 70), UInt16, Int256): while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Functions/FunctionsConversion.cpp:0: DB::(anonymous namespace)::FunctionCast::createTupleWrapper(std::shared_ptr const&, DB::DataTypeTuple const*) const @ 0x000000000710d9fa 5. /build/src/Functions/FunctionsConversion.cpp:5206: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb3cf 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 15 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_14` ( `key` UInt64, `val` LowCardinality(Nullable(Float64)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_15` ( `key` UInt64, `val` Float64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_16` ( `key` LowCardinality(UInt64), `val` Float64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 18 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_17` ( `key` LowCardinality(UInt64), `val` UInt256 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 19 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_18` ( `key` LowCardinality(Date), `val` Array(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_18` (`key` LowCardinality(Date), `val` Array(UInt256)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 20 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_19` ( `key` DateTime64(3), `val` Nullable(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_20` ( `key` DateTime64(3), `val` UInt256 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 22 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_21` ( `key` Array(DateTime64(3)), `val` UInt256 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_21` (`key` Array(DateTime64(3)), `val` UInt256) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 23 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_22` ( `key` Array(DateTime64(3)), `val` Int16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_22` (`key` Array(DateTime64(3)), `val` Int16) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 24 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_23` ( `key` DateTime64(3), `val` LowCardinality(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_24` ( `key` Array(DateTime64(3)), `val` Nullable(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_24` (`key` Array(DateTime64(3)), `val` Nullable(UInt256)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 26 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_25` ( `key` Array(DateTime64(3)), `val` UInt64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_25` (`key` Array(DateTime64(3)), `val` UInt64) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 27 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_26` ( `key` DateTime64(3), `val` LowCardinality(Nullable(UInt256)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_27` ( `key` DateTime64(3), `val` LowCardinality(Nullable(UInt256)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_28` ( `key` DateTime64(3), `val` Nullable(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_29` ( `key` Decimal(38, 25), `val` Nullable(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_30` ( `key` Decimal(38, 25), `val` Nullable(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 32 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_31` ( `key` Decimal(38, 25), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_32` ( `key` Nullable(Decimal(38, 25)), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 34 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_33` ( `key` Nullable(UInt32), `val` LowCardinality(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_34` ( `key` LowCardinality(Nullable(UInt32)), `val` LowCardinality(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 36 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_35` ( `key` LowCardinality(Nullable(UInt32)), `val` Array(LowCardinality(Int64)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_35` (`key` LowCardinality(Nullable(UInt32)), `val` Array(LowCardinality(Int64))) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 37 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_36` ( `key` Nullable(UInt32), `val` LowCardinality(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_37` ( `key` Nullable(UInt32), `val` Array(LowCardinality(Int64)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_37` (`key` Nullable(UInt32), `val` Array(LowCardinality(Int64))) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 39 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_38` ( `key` Nullable(UInt32), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 40 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_39` ( `key` LowCardinality(Nullable(UInt32)), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 41 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_40` ( `key` LowCardinality(Nullable(UInt16)), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_41` ( `key` LowCardinality(Nullable(UInt16)), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_42` ( `key` Nullable(UInt16), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_43` ( `key` Nullable(UInt16), `val` UInt256 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_44` ( `key` Nullable(UInt16), `val` Array(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_44` (`key` Nullable(UInt16), `val` Array(UInt256)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 46 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_45` ( `key` Nullable(UInt16), `val` UInt256 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_46` ( `key` Nullable(Decimal(9, 9)), `val` LowCardinality(UInt256) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_46` (`key` Nullable(Decimal(9, 9)), `val` LowCardinality(UInt256)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: Decimal convert overflow: 3000000000 is not in range (-2147483648, 2147483647): while converting source column number to destination column key: while executing 'FUNCTION _CAST(number :: 0, Nullable(Decimal(9, 9)) :: 2) -> _CAST(number, Nullable(Decimal(9, 9))) Nullable(Decimal(9, 9)) : 4'. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&, String&&) @ 0x00000000070bb7cb 4. /build/src/DataTypes/DataTypesDecimal.cpp:0: _ZN2DB19convertDecimalsImplINS_15DataTypeDecimalINS_7DecimalIN4wide7integerILm128EiEEEEEENS1_INS2_IiEEEEvQaa17IsDataTypeDecimalIT_E17IsDataTypeDecimalIT0_EEET1_RKNSA_9FieldTypeEjjRNSB_9FieldTypeE @ 0x0000000010c94b0e 5. /build/src/DataTypes/DataTypesDecimal.cpp:322: _ZN2DB16convertToDecimalINS_14DataTypeNumberImEENS_15DataTypeDecimalINS_7DecimalIiEEEEQaa15is_arithmetic_vINT_9FieldTypeEE17IsDataTypeDecimalIT0_EEENS9_9FieldTypeERKS8_j @ 0x0000000010ca0e08 6. /build/src/Common/PODArray.h:208: _ZN2DBL22callOnIndexAndDataTypeINS_15DataTypeDecimalINS_7DecimalIiEEEEZZNKS_12_GLOBAL__N_112FunctionCast20createDecimalWrapperIS4_Q17IsDataTypeDecimalIT_EEENSt3__18functionIFN3COWINS_7IColumnEE13immutable_ptrISC_EERNS9_6vectorINS_21ColumnWithTypeAndNameENS9_9allocatorISH_EEEERKNS9_10shared_ptrIKNS_9IDataTypeEEEPKNS_14ColumnNullableEmEEESR_PKS8_bENKUlSL_SR_SU_mE_clESL_SR_SU_mEUlRSX_E_JEEEbNS_9TypeIndexEOT0_DpOT1_ @ 0x00000000071fc644 7. /build/src/Functions/FunctionsConversion.cpp:3471: _ZNSt3__110__function16__policy_invokerIFN3COWIN2DB7IColumnEE13immutable_ptrIS4_EERNS_6vectorINS3_21ColumnWithTypeAndNameENS_9allocatorIS9_EEEERKNS_10shared_ptrIKNS3_9IDataTypeEEEPKNS3_14ColumnNullableEmEE11__call_implINS0_20__default_alloc_funcIZNKS3_12_GLOBAL__N_112FunctionCast20createDecimalWrapperINS3_15DataTypeDecimalINS3_7DecimalIiEEEEQ17IsDataTypeDecimalIT_EEENS_8functionISN_EESJ_PKSY_bEUlSD_SJ_SM_mE_SN_EEEES7_PKNS0_16__policy_storageESD_SJ_SM_m @ 0x00000000071f71eb 8. /build/contrib/boost/boost/smart_ptr/detail/operator_bool.hpp:63: COW::immutable_ptr std::__function::__policy_invoker::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>::__call_impl const&, std::shared_ptr const&, bool) const::'lambda'(std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long), COW::immutable_ptr (std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long)>>(std::__function::__policy_storage const*, std::vector>&, std::shared_ptr const&, DB::ColumnNullable const*, unsigned long) @ 0x00000000072eae67 9. /build/contrib/llvm-project/libcxx/include/vector:432: DB::(anonymous namespace)::ExecutableFunctionCast::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000070fbd90 10. /build/contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6aca5 11. /build/contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6b689 12. /build/src/Functions/IFunction.cpp:0: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6c645 13. /build/contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool, bool) const @ 0x00000000111ab0fd 14. /build/src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x0000000012fc72b6 15. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:35: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x000000000c90d4d3 16. /build/src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x0000000012d6a089 17. /build/src/Processors/Executors/ExecutionThreadContext.cpp:0: DB::ExecutionThreadContext::executeTask() @ 0x0000000012d848a9 18. /build/src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000012d7a550 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x0000000012d7a7dd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x0000000012d7964c 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d79065 22. /build/src/Processors/Executors/CompletedPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::CompletedPipelineExecutor::execute()::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d784e7 23. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 25. ? @ 0x00007f528afa4ac3 26. ? @ 0x00007f528b036850 Fuzzing step 48 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_47` ( `key` LowCardinality(Nullable(UInt16)), `val` DateTime64(3) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_48` ( `key` Nullable(UInt16), `val` DateTime64(3) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) 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 key, any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY key ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY key ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 3 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY key ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 4 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY key ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 5 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 8 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 14 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 17 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 21 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 23 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 27 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 29 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_ro. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 30 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 31 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'anyany', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Fuzzing step 32 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 34 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 35 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 36 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 38 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 39 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 40 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 41 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 42 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 43 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 48 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 49 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 50 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 53 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 55 out of 1000 EXPLAIN ESTIMATE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 58 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 59 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 60 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 61 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 62 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 63 out of 1000 EXPLAIN ESTIMATE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 66 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 67 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 68 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 69 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 70 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 72 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 73 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 74 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 75 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 76 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 78 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 79 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 80 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 81 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 83 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 84 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 86 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 87 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 88 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'SELECT any(val) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_12`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 89 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 90 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 92 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 93 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 96 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN PIPELINE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 98 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 99 out of 1000 EXPLAIN ESTIMATE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 102 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 103 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 104 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 105 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 106 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 107 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 108 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 110 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 EXPLAIN SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 114 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 115 out of 1000 EXPLAIN AST SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('any'): any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 117 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 119 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 120 out of 1000 EXPLAIN SYNTAX SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 121 out of 1000 EXPLAIN QUERY TREE SELECT any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 9223372036854775807, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 129 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 132 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 135 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'SELECT any(val) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_12`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 136 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 143 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 147 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT `03657_gby_overflow__fuzz_16`, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'SELECT `03657_gby_overflow__fuzz_16`, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_16' in scope SELECT `03657_gby_overflow__fuzz_16`, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 151 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT toInt128(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT toInt128(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT toInt128(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY GROUPING SETS ((key)) WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Error on processing query 'SELECT toInt128(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY GROUPING SETS ((key)) WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 256, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 155 out of 1000 SELECT toInt128(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Got boring AST Fuzzing step 158 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 10 Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 162 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_12`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 164 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_32`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 165 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN PIPELINE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 170 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 171 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 173 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 174 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 175 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 176 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('any'): any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', ma. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 177 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 178 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 180 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 181 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 182 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 183 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 184 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 185 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 186 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 188 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 191 out of 1000 EXPLAIN AST SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN AST SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 193 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_2` GROUP BY GROUPING SETS ((key)) WITH CUBE ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_2` GROUP BY GROUPING SETS ((key)) WITH CUBE ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 194 out of 1000 EXPLAIN SYNTAX SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 EXPLAIN SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 EXPLAIN AST SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN QUERY TREE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 200 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 201 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` WHERE `03657_gby_overflow__fuzz_23` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` WHERE `03657_gby_overflow__fuzz_23` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_23' in scope SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` WHERE `03657_gby_overflow__fuzz_23` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 202 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 211 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT any(toInt128(9223372036854775807), val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(toInt128(9223372036854775807), val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Aggregate function any requires single argument. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/AggregateFunctions/SingleValueData.h:0: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_120AggregateFunctionAnyELb1ETpTnbJEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x000000000f742365 5. /build/src/AggregateFunctions/AggregateFunctionAny.cpp:0: DB::(anonymous namespace)::createAggregateFunctionAny(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000000f7400a9 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000104cd51c 7. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000104cc3d4 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:616: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062141 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 213 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 214 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT numbers(100000), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT numbers(100000), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT numbers(100000), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 8. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 216 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 217 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = NULL Fuzzing step 220 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE ORDER BY 38 ASC, key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE ORDER BY 38 ASC, key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Positional argument number 38 is out of bounds. Expected in range [1, 1]. In scope SELECT any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE ORDER BY 38 ASC, key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045771 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 226 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 229 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 231 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 232 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 233 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', m. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 234 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 235 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 237 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 240 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` PREWHERE 9223372036854775806 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_10` PREWHERE 9223372036854775806 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a3133 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 241 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` PREWHERE 2147483646 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` PREWHERE 2147483646 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a3133 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 243 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_16` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` PREWHERE 10 WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` PREWHERE 10 WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_40`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` PREWHERE 10 WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 245 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE 10 WHERE `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE 10 WHERE `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_43' in scope SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE 10 WHERE `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 248 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` PREWHERE 10 GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 249 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT `03657_gby_overflow__fuzz_40`, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT `03657_gby_overflow__fuzz_40`, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_40' in scope SELECT `03657_gby_overflow__fuzz_40`, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 252 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 253 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` PREWHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 100, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_0` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 256 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` WHERE NULL WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` WHERE NULL WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_40`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_40` WHERE NULL WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 257 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_17` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_41` WHERE NULL GROUP BY key WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_41` WHERE NULL GROUP BY key WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537': Received from localhost:9000. DB::Exception: Syntax error: failed at position 106 ('CUBE'): CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_si. Expected TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 259 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_30` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = -2147483649, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Fuzzing step 260 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Got boring AST Fuzzing step 263 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` WHERE NULL GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 65537 Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` WHERE NULL GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` WHERE NULL GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Got boring AST Fuzzing step 266 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` WHERE NULL GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Got boring AST Fuzzing step 267 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` WHERE NULL GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` WHERE NULL GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` WHERE NULL GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Got boring AST Fuzzing step 272 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Error on processing query 'SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_12' in scope SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 273 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Got boring AST Fuzzing step 277 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 EXPLAIN TABLE OVERRIDE SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('any'): any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overf. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 284 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 1025, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_28` ASC, key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Error on processing query 'SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_28` ASC, key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_28' in scope SELECT any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_28` ASC, key DESC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1023, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 299 out of 1000 SELECT toInt128(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT toInt128(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 SELECT toInt128(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775807 Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 SELECT toInt128(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT toInt128(materialize(toInt256(9223372036854775807))), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 SELECT materialize(toInt256(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT materialize(toInt256(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT materialize(toInt256(9223372036854775807)), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = -9223372036854775808, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Fuzzing step 307 out of 1000 SELECT materialize(NULL, 9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Error on processing query 'SELECT materialize(NULL, 9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(NULL, 9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 308 out of 1000 SELECT materialize(toInt256(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Got boring AST Fuzzing step 309 out of 1000 SELECT materialize(toInt256(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT materialize(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT materialize(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Got boring AST Fuzzing step 312 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Got boring AST Fuzzing step 314 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 9223372036854775806. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x00000000073d752b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056d6b 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 315 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT materialize(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT -2147483649 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 65535, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Error on processing query 'SELECT materialize(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_17` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT -2147483649 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 65535, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 319 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT toInt128(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 324 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 325 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 326 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 330 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 331 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 333 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 334 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 337 out of 1000 EXPLAIN `header, description` = true SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Error on processing query 'EXPLAIN `header, description` = true SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 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. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x00000000115971ab 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592a82 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 338 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 100.0001 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Error on processing query 'SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 100.0001 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 344 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Error on processing query 'SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_20' in scope SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 345 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 346 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 349 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 350 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('9223372036854775807'): 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 102. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 353 out of 1000 EXPLAIN AST SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN AST SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 355 out of 1000 EXPLAIN AST SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 356 out of 1000 EXPLAIN AST SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 360 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 363 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 364 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Got boring AST Fuzzing step 366 out of 1000 SELECT toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 3 Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 SELECT toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 SELECT toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 SELECT toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 SELECT toInt256(val, 9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY numbers(100000) ASC, key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Error on processing query 'SELECT toInt256(val, 9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY numbers(100000) ASC, key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt256'. Expected 1 argument, got 2 arguments: In scope SELECT toInt256(val, 9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY numbers(100000) ASC, key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToInt256, 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&) @ 0x00000000071d0df8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071cad3b 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 372 out of 1000 SELECT toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Got boring AST Fuzzing step 373 out of 1000 SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_48` PREWHERE 9223372036854775807 GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Error on processing query 'SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_48` PREWHERE 9223372036854775807 GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a3133 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 376 out of 1000 SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT toInt256(toNullable(toInt256(9223372036854775807))), 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 SELECT toInt256(toNullable(toInt256(9223372036854775807))), 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Got boring AST Fuzzing step 379 out of 1000 SELECT toInt256(toNullable(toInt256(9223372036854775807))), 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT toInt256(toInt256(9223372036854775807)), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT toInt256(toInt256(9223372036854775807)), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT toInt256(9223372036854775807), `03657_gby_overflow__fuzz_31`, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` WHERE `03657_gby_overflow__fuzz_26` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = -2147483649 Fuzzing step 383 out of 1000 SELECT toInt256(toInt256(9223372036854775807)), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 385 out of 1000 SELECT toInt256(toInt256(9223372036854775807)), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = '\0ny', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Fuzzing step 386 out of 1000 SELECT toInt256(toInt256(9223372036854775807)), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Got boring AST Fuzzing step 389 out of 1000 SELECT toInt256(9223372036854775807), `03657_gby_overflow__fuzz_43`, 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647 Error on processing query 'SELECT toInt256(9223372036854775807), `03657_gby_overflow__fuzz_43`, 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_43' in scope SELECT toInt256(9223372036854775807), `03657_gby_overflow__fuzz_43`, 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2147483647. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 390 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 392 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT toInt256(9223372036854775807), toInt256(9223372036854775807), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = NULL, max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Fuzzing step 394 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 396 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 398 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 400 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT toInt256(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT toInt256(1025, 9223372036854775807), materialize(toLowCardinality(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(1025, 9223372036854775807), materialize(toLowCardinality(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt256'. Expected 1 argument, got 2 arguments: In scope SELECT toInt256(1025, 9223372036854775807), materialize(toLowCardinality(9223372036854775807)), any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToInt256, 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&) @ 0x00000000071d0df8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071cad3b 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 404 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 409 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 412 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_40`.key is not under aggregate function and not in GROUP BY keys. In query SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 420 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 424 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 426 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 427 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 429 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('9223372036854775807'): 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 431 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 432 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 434 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 435 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 436 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 437 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 439 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 440 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 445 out of 1000 EXPLAIN SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('9223372036854775807'): 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 447 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('9223372036854775807'): 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 449 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 453 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 454 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 456 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('9223372036854775807'): 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 457 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 458 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 459 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('9223372036854775807'): 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 460 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 461 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 462 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 463 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 464 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 465 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 466 out of 1000 EXPLAIN AST SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 467 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 469 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT 9223372036854775807, toLowCardinality(toNullable(9223372036854775807)), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT 9223372036854775807, toLowCardinality(toNullable(9223372036854775807)), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT 9223372036854775807, toLowCardinality(toNullable(9223372036854775807)), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 475 out of 1000 SELECT 9223372036854775807, toLowCardinality(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT 9223372036854775807, toLowCardinality(9223372036854775807), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 479 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_34`.key is not under aggregate function and not in GROUP BY keys. In query SELECT 9223372036854775807, 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 480 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT toNullable(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT toNullable(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT toNullable(9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT toNullable(`03657_gby_overflow__fuzz_0`, 9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toNullable(`03657_gby_overflow__fuzz_0`, 9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_0' in scope SELECT toNullable(`03657_gby_overflow__fuzz_0`, 9223372036854775807), 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 487 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 494 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 497 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 501 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 9223372036854775807, 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 505 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 506 out of 1000 SELECT 9223372036854775807, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = '9223372036854775806', group_by_two_level_threshold_bytes = 2 Fuzzing step 507 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 255, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 509 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_27` PREWHERE any(val) IGNORE NULLS GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_27` PREWHERE any(val) IGNORE NULLS GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Aggregate function any(val) IGNORE NULLS is found in PREWHERE in query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x00000000084da06b 4. /build/src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000011099c11 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x0000000011099e0f 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011095a09 7. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 513 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 515 out of 1000 SELECT toInt128(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` PREWHERE any(val) RESPECT NULLS GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` PREWHERE any(val) RESPECT NULLS GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Aggregate function any(val) RESPECT NULLS is found in PREWHERE in query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x00000000084da06b 4. /build/src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000011099c11 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x0000000011099e0f 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011095a09 7. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 522 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` WHERE number GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` WHERE number GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier 'number' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` WHERE number GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 523 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT `03657_gby_overflow__fuzz_40`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT `03657_gby_overflow__fuzz_40`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_40' in scope SELECT `03657_gby_overflow__fuzz_40`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 528 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 529 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = -2147483647, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Fuzzing step 537 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = -2, group_by_two_level_threshold_bytes = 2 Fuzzing step 542 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 547 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 548 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 550 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('9223372036854775807'): 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_m. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 551 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 552 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 554 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 556 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 557 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 558 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 559 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 563 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 564 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 568 out of 1000 SELECT `03657_gby_overflow__fuzz_45`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT `03657_gby_overflow__fuzz_45`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_45' in scope SELECT `03657_gby_overflow__fuzz_45`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 569 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 570 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 571 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_23` ASC NULLS FIRST, key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_23` ASC NULLS FIRST, key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_23' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_23` ASC NULLS FIRST, key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 9223372036854775806, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 574 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 577 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_10` ASC, key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_10` ASC, key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_10' in scope SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_41` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_10` ASC, key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 578 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 EXPLAIN PIPELINE compact = true SELECT toNullable(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toNullable(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 583 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 587 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('9223372036854775807'): 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', m. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 588 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 589 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 591 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 592 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 595 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 596 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 597 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WHERE `03657_gby_overflow__fuzz_9` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WHERE `03657_gby_overflow__fuzz_9` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_9' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WHERE `03657_gby_overflow__fuzz_9` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 12. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 13. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 600 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT `03657_gby_overflow__fuzz_27`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT `03657_gby_overflow__fuzz_27`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_27' in scope SELECT `03657_gby_overflow__fuzz_27`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 602 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_27' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 603 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 604 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 605 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 609 out of 1000 SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 613 out of 1000 SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1025, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = NULL Fuzzing step 614 out of 1000 EXPLAIN PIPELINE header = true SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 615 out of 1000 SELECT toNullable(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 616 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT materialize(toLowCardinality(9223372036854775807)) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT materialize(toLowCardinality(9223372036854775807)) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT materialize(toLowCardinality(9223372036854775807)) FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toLowCardinality'): toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 622 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = -9223372036854775808, group_by_two_level_threshold_bytes = 2 Fuzzing step 623 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 625 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 626 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 627 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 628 out of 1000 EXPLAIN AST SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 0, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 0, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 633 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 0, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC, key ASC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 0, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC, key ASC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 0, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 0, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = -2, group_by_two_level_threshold_bytes = 2 Fuzzing step 644 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 645 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 650 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 652 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 653 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WHERE `03657_gby_overflow__fuzz_31` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 10, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = -2147483649 Fuzzing step 654 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT toNullable(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT toNullable(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 SELECT `03657_gby_overflow__fuzz_32`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT `03657_gby_overflow__fuzz_32`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_32' in scope SELECT `03657_gby_overflow__fuzz_32`, 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 661 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN PIPELINE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 666 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 667 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 668 out of 1000 EXPLAIN SYNTAX SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN SYNTAX SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 672 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 674 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 675 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 677 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 678 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 679 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 682 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 683 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN PIPELINE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 688 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 689 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('toInt128'): toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) A. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 691 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 693 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 EXPLAIN PIPELINE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN PIPELINE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 696 out of 1000 EXPLAIN ESTIMATE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('toInt128'): toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) A. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 699 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 700 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 701 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 702 out of 1000 EXPLAIN PIPELINE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 EXPLAIN PIPELINE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN QUERY TREE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 707 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 708 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 709 out of 1000 EXPLAIN ESTIMATE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('toInt128'): toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) A. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 711 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('toInt128'): toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) A. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 712 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 714 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 715 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 716 out of 1000 EXPLAIN AST SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 717 out of 1000 EXPLAIN SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 720 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 721 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 722 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 725 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 103 ('CUBE'): CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 214. Expected TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 728 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_36` ASC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_36` ASC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_36' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_36` ASC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 729 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 730 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` PREWHERE `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` PREWHERE `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_43' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` PREWHERE `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 732 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 733 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 2147483646, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_19` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_19` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_19' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` PREWHERE `03657_gby_overflow__fuzz_19` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 12. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 13. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 737 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = -2147483647, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Fuzzing step 738 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 739 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 740 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = NULL, group_by_two_level_threshold_bytes = 2 Fuzzing step 744 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_16` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH CUBE WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 754 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 EXPLAIN actions = true, json = true SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN actions = true, json = true SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "actions" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592892 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 757 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT materialize(toLowCardinality(9223372036854775807)) FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 1048577, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT materialize(toLowCardinality(9223372036854775807)) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483648, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 772 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 773 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 774 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 775 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 65537 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 780 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 781 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 785 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 786 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 787 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 791 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 792 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('9223372036854775807'): 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 793 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 795 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('9223372036854775807'): 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 796 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 797 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 799 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 800 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 802 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 808 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT numbers(100000), 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT numbers(100000), 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT numbers(100000), 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 8. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 811 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 255, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 815 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` PREWHERE `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` PREWHERE `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_34' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` PREWHERE `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 817 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 818 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 821 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` PREWHERE 1048576 WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` PREWHERE 1048576 WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a3133 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 824 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 826 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 827 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 828 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 832 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 0, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_17' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` PREWHERE `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 841 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT -9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT -9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 842 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 EXPLAIN sorting = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` GROUP BY 10, toNullable(toInt256(9223372036854775807)) WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN sorting = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` GROUP BY 10, toNullable(toInt256(9223372036854775807)) WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "sorting" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592892 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 844 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) ASC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT toInt256(`03657_gby_overflow__fuzz_43`, 9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(`03657_gby_overflow__fuzz_43`, 9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_43' in scope SELECT toInt256(`03657_gby_overflow__fuzz_43`, 9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 848 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 EXPLAIN PIPELINE header = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_16` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_16` WITH TOTALS ORDER BY any(val) ASC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 1048577, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 850 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, `03657_gby_overflow__fuzz_42` ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, `03657_gby_overflow__fuzz_42` ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_42' in scope SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, `03657_gby_overflow__fuzz_42` ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 852 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_41` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WHERE `03657_gby_overflow__fuzz_36` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WHERE `03657_gby_overflow__fuzz_36` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_36' in scope SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WHERE `03657_gby_overflow__fuzz_36` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 854 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` PREWHERE 1025 WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` PREWHERE 1025 WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a3133 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 856 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 857 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 861 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 256 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 866 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 873 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_16` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_16` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_16` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x00000000073d752b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056d6b 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 875 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` WHERE 10 WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = NULL Fuzzing step 876 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 879 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT -2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT -2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 1024, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 886 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.106249945 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 888 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_47` ASC, any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_47` ASC, any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_47' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY `03657_gby_overflow__fuzz_47` ASC, any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 890 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN PIPELINE header = true SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 892 out of 1000 EXPLAIN PIPELINE header = true SELECT toNullable(toInt256(9223372036854775807)) FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'EXPLAIN PIPELINE header = true SELECT toNullable(toInt256(9223372036854775807)) FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 893 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 11.222264697 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 894 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 895 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2 Got boring AST Fuzzing step 896 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT val, 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT val, 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_27`.val is not under aggregate function and not in GROUP BY keys. In query SELECT val, 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001109663c 7. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 898 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.212025498 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 899 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 900 out of 1000 SELECT 65536, 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_47` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 65536, 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_47` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_47' in scope SELECT 65536, 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_47` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 901 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.089552309 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 902 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.064563041 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 903 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 904 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.136984224 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 905 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.174584351 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 907 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC, toLowCardinality(toNullable(9223372036854775807)) ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = -2147483647 Fuzzing step 909 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS LAST, toLowCardinality(toNullable(9223372036854775807)) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = -2147483649, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Fuzzing step 913 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.168512007 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 914 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT toInt256(toNullable(9223372036854775807)) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT toInt256(toNullable(9223372036854775807)) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.141439034 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 918 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT toInt256(toNullable(9223372036854775807)) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = -9223372036854775808, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Fuzzing step 920 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 921 out of 1000 SELECT toInt256(toNullable(9223372036854775807)) FROM `03657_gby_overflow__fuzz_32` WHERE `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT toInt256(toNullable(9223372036854775807)) FROM `03657_gby_overflow__fuzz_32` WHERE `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_33' in scope SELECT toInt256(toNullable(9223372036854775807)) FROM `03657_gby_overflow__fuzz_32` WHERE `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 922 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.303481993 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 923 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_43' in scope SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_11` PREWHERE `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 924 out of 1000 SELECT toInt256(toLowCardinality(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 SELECT toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT 256, toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT 256, toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 928 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = NULL, group_by_two_level_threshold_bytes = 2147483646 Fuzzing step 930 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 932 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_17` GROUP BY NULL, 100, `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 256 FROM `03657_gby_overflow__fuzz_17` GROUP BY NULL, 100, `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Positional argument number 100 is out of bounds. Expected in range [1, 1]. In scope SELECT 256 FROM `03657_gby_overflow__fuzz_17` GROUP BY NULL, 100, `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 933 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 EXPLAIN PIPELINE compact = true SELECT 256 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 256 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 935 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.335043558 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 937 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_10` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_34` PREWHERE `03657_gby_overflow__fuzz_45` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_34` PREWHERE `03657_gby_overflow__fuzz_45` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_45' in scope SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_34` PREWHERE `03657_gby_overflow__fuzz_45` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 65537, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 943 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_39` WHERE `03657_gby_overflow` WITH TOTALS ORDER BY MergeTree DESC, any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 256 FROM `03657_gby_overflow__fuzz_39` WHERE `03657_gby_overflow` WITH TOTALS ORDER BY MergeTree DESC, any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow' in scope SELECT 256 FROM `03657_gby_overflow__fuzz_39` WHERE `03657_gby_overflow` WITH TOTALS ORDER BY MergeTree DESC, any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 948 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 949 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 950 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.341893078 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 951 out of 1000 SELECT toInt128(256) FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483647, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_40` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 960 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_34` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 962 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_43` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_16` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT `03657_gby_overflow__fuzz_32`, 256 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT `03657_gby_overflow__fuzz_32`, 256 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_32' in scope SELECT `03657_gby_overflow__fuzz_32`, 256 FROM `03657_gby_overflow__fuzz_0` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 966 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_41` WITH TOTALS ORDER BY any(val) DESC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT materialize(256) FROM `03657_gby_overflow__fuzz_39` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT materialize(256) FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_11` WITH TOTALS ORDER BY any(val) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 972 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 256 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 2147483647, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.870984858 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 973 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY any(val) ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) ASC LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 2147483648, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY any(val) ASC LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) ASC LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_12` WITH TOTALS ORDER BY any(val) ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 256 FROM `03657_gby_overflow__fuzz_17` WITH TOTALS ORDER BY any(val) DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.887398367 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 980 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_30` WITH TOTALS ORDER BY any(val) DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'SELECT 256 FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.803176733 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 984 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_48` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_20` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_41` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 9223372036854775807, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_41` WITH TOTALS ORDER BY any(val) DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('256'): 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 991 out of 1000 EXPLAIN AST SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 EXPLAIN AST SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 994 out of 1000 EXPLAIN AST SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 995 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('256'): 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 996 out of 1000 EXPLAIN AST SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 997 out of 1000 EXPLAIN AST SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 998 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 EXPLAIN PIPELINE SELECT 256 FROM `03657_gby_overflow__fuzz_27` WITH TOTALS ORDER BY any(val) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1025, max_threads = 65535, max_block_size = 65536, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 2147483646 Got boring AST Fuzzing step 0 out of 1 Query succeeded, using this AST as a start DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_0` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_1` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_2` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_3` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_4` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_5` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_6` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_7` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_8` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_9` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_10` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_11` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_12` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_13` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_14` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_15` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_16` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_17` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_18` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_19` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_20` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_21` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_22` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_23` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_24` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_25` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_26` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_27` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_28` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_29` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_30` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_31` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_32` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_33` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_34` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_35` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_36` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_37` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_38` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_39` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_40` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_41` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_42` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_43` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_44` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_45` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_46` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_47` DROP TABLE IF EXISTS `03657_gby_overflow__fuzz_48` Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 2 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 3 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toNullable(3), toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toNullable(3), toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toNullable(3), toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 4 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 5 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 6 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 7 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 8 out of 1000 EXPLAIN QUERY TREE passes = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "passes" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 9 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 10 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 11 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 12 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 13 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 14 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 15 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE equals(ts + 1, NULL, ts) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE equals(ts + 1, NULL, ts)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE equals(ts + 1, NULL, ts). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 16 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 17 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 22 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 23 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 24 out of 1000 SELECT toDateTime('UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'SELECT toDateTime('UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Cannot parse datetime: Cannot parse DateTime from String: In scope SELECT toDateTime('UTC') AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/IO/ReadHelpers.h:1019: void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, char const*, char const*) @ 0x00000000073d74c5 5. /build/src/Functions/FunctionsConversion.cpp:632: 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&&) @ 0x000000000725b8d8 6. /build/src/Functions/FunctionsConversion.cpp:2342: DB::(anonymous namespace)::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000724d222 7. /build/src/Functions/IFunction.h:448: DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000701134a 8. /build/src/Functions/IFunctionAdaptors.h:28: DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x00000000070279da 9. /build/src/Functions/IFunction.cpp:0: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6ac8f 10. /build/src/Functions/IFunction.cpp:0: DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6a770 11. /build/src/Functions/IFunction.cpp:0: DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6ac32 12. /build/contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6b71a 13. /build/src/Functions/IFunction.cpp:0: DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000007b6c645 14. /build/contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011063a30 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 18. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 20. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 21. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 24. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 25. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 27. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 30. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e Fuzzing step 25 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 27 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 28 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 29 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 30 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 31 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 32 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 33 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 34 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 35 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 36 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 37 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 38 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE `03657_gby_overflow` WHERE (ts + 1) = ts Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE `03657_gby_overflow` WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 39 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 40 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 41 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 42 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 43 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 EXPLAIN PIPELINE compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 45 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 46 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 47 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_2`, materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts GROUP BY toInt128(256), 100 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_2`, materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts GROUP BY toInt128(256), 100': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_2' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_2`, materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts GROUP BY toInt128(256), 100. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 48 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 51 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 53 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 55 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 57 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 58 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 59 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 63 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 64 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 65 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 66 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 69 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 70 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 72 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 74 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 75 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 76 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 77 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 100000, fromUnixTimestamp64Micro(toInt64(0)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 100000, fromUnixTimestamp64Micro(toInt64(0))': Received from localhost:9000. DB::Exception: Positional argument number 100000 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 100000, fromUnixTimestamp64Micro(toInt64(0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 79 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE equals(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), ts + 1, ts) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE equals(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), ts + 1, ts)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE equals(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), ts + 1, ts). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 80 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 81 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 82 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE plus(1) = ts Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE plus(1) = ts': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE plus(1) = ts. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 83 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 84 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + toNullable(1)) = ts Got boring AST Fuzzing step 86 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(2)) WHERE (ts + toNullable(1)) = ts Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(2)) WHERE (ts + toNullable(1)) = ts': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 87 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 89 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 90 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 91 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 92 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 93 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 94 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 95 out of 1000 SELECT `03657_gby_overflow__fuzz_16`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Error on processing query 'SELECT `03657_gby_overflow__fuzz_16`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_16' in scope SELECT `03657_gby_overflow__fuzz_16`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 96 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 97 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 98 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE (ts + 1) = ts Got boring AST Fuzzing step 99 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 101 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 102 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 103 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 104 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 105 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 106 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 107 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE any(val) IGNORE NULLS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE any(val) IGNORE NULLS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'val' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE any(val) IGNORE NULLS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 108 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 109 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 110 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 111 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 112 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 114 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 115 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 116 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 117 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 118 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 119 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) GROUP BY 9223372036854775807, toInt64(toUInt128(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) GROUP BY 9223372036854775807, toInt64(toUInt128(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC')': Received from localhost:9000. DB::Exception: Positional argument number 9223372036854775807 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) GROUP BY 9223372036854775807, toInt64(toUInt128(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 120 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 121 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 122 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(2) Got boring AST Fuzzing step 123 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 125 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 126 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 127 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY `03657_gby_overflow__fuzz_41`, 2147483648, `03657_gby_overflow__fuzz_42` Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY `03657_gby_overflow__fuzz_41`, 2147483648, `03657_gby_overflow__fuzz_42`': Received from localhost:9000. DB::Exception: Positional argument number 2147483648 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY `03657_gby_overflow__fuzz_41`, 2147483648, `03657_gby_overflow__fuzz_42`. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 128 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 129 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 130 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 132 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 133 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 134 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE 2 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE 2': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers_mt) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 135 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 136 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE 2 Error on processing query 'EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE 2': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers_mt) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x000000001165bf8d 8. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e0ae 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 137 out of 1000 SELECT toDateTime(256, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) Error on processing query 'SELECT toDateTime(256, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(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 SELECT toDateTime(256, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 138 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 139 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE materialize(9223372036854775807) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE materialize(9223372036854775807)': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers_mt) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 140 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 141 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, toLowCardinality(2)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, toLowCardinality(2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 142 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 143 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 144 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 145 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 146 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 147 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 148 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 149 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 150 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt128(9223372036854775806), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt128(9223372036854775806), 2)': Received from localhost:9000. DB::Exception: Illegal type Int128 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 151 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 156 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 158 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 159 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(toLowCardinality(toNullable(9223372036854775806)), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(toLowCardinality(toNullable(9223372036854775806)), 2)': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt64)) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 161 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 162 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 163 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 164 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 165 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 166 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(38, 0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(38, 0)))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(38, 0)))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 21. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 23. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 24. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 27. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 28. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 30. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb Fuzzing step 167 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(`03657_gby_overflow__fuzz_30`, 0)))) AS ts FROM numbers_mt(9223372036854775806) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(`03657_gby_overflow__fuzz_30`, 0)))) AS ts FROM numbers_mt(9223372036854775806)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_30' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(`03657_gby_overflow__fuzz_30`, 0)))) AS ts FROM numbers_mt(9223372036854775806). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 19. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 168 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 170 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 171 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 176 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 177 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 178 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 179 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 182 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 184 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 185 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 188 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 190 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 192 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 193 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 196 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 199 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 200 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 201 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 202 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 205 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 207 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 210 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 211 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 212 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 213 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 214 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 215 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 220 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 221 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 222 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 223 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(materialize(256), toInt64(0))) AS ts FROM numbers_mt(toNullable(9223372036854775806), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(materialize(256), toInt64(0))) AS ts FROM numbers_mt(toNullable(9223372036854775806), 2)': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt64) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 224 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 225 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 226 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 227 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 228 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 229 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 230 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 231 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 232 out of 1000 SELECT toDateTime(1025, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(1025, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 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 SELECT toDateTime(1025, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 233 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 234 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 235 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 236 out of 1000 SELECT toDateTime(materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 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 SELECT toDateTime(materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 237 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 238 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 239 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 240 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_7`, 0))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE (ts + 1) = ts Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_7`, 0))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE (ts + 1) = ts': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_7' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_7`, 0))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE (ts + 1) = ts. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 241 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 242 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 243 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 244 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 245 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY any(val) IGNORE NULLS, 256 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY any(val) IGNORE NULLS, 256': Received from localhost:9000. DB::Exception: Positional argument number 256 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY any(val) IGNORE NULLS, 256. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 246 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 248 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 249 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 250 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 251 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 252 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806)': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.00008368 seconds, maximum: 10: While executing NumbersRange. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/src/QueryPipeline/ReadProgressCallback.cpp:0: DB::ReadProgressCallback::onProgress(unsigned long, unsigned long, std::list> const&) @ 0x0000000010c0ea41 6. /build/src/Processors/Executors/ExecutionThreadContext.cpp:62: DB::ExecutionThreadContext::executeTask() @ 0x0000000012d8491e 7. /build/src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x0000000012d7a550 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x0000000012d7a7dd 9. /build/src/Processors/Executors/PipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl>(std::__function::__policy_storage const*) @ 0x0000000012d7b13f 10. /build/src/Common/ThreadPool.cpp:781: ThreadPoolImpl>::ThreadFromThreadPool::worker() @ 0x000000000c709f9f 11. /build/contrib/llvm-project/libcxx/include/__functional/invoke.h:0: ? @ 0x000000000c70f122 12. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 253 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 254 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 255 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 256 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt128(9223372036854775806), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt128(9223372036854775806), 2)': Received from localhost:9000. DB::Exception: Illegal type Int128 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 257 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 255, 2147483647, 'UTC' Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 255, 2147483647, 'UTC'': Received from localhost:9000. DB::Exception: Positional argument number 255 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 255, 2147483647, 'UTC'. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 258 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 259 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 261 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 264 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 265 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 266 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 268 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 269 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 272 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 273 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 274 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 275 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 277 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(100000, toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, materialize(toNullable(toUInt256(2)))) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(100000, toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, materialize(toNullable(toUInt256(2))))': 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', 'Nullable(UInt256)')). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 279 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 280 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toDateTime(toInt64(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toDateTime(toInt64(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 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 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toDateTime(toInt64(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 281 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 282 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 283 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 285 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 286 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 287 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 288 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 289 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 291 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 293 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 294 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 296 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 297 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 298 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 299 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 300 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 301 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 302 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, toLowCardinality(0), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, toLowCardinality(0), 2)': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 303 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 305 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 306 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 308 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 309 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 312 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 313 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY `03657_gby_overflow__fuzz_28`, ts + 1 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY `03657_gby_overflow__fuzz_28`, ts + 1': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_28' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY `03657_gby_overflow__fuzz_28`, ts + 1. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 314 out of 1000 SELECT numbers(100000), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT numbers(100000), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT numbers(100000), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 8. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 315 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(9223372036854775806), materialize(2)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(9223372036854775806), materialize(2))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt64) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 316 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 317 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 318 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 319 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 320 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 321 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 322 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 323 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 324 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 325 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 326 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 327 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 329 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 330 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 331 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 332 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 333 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 334 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0))))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0))))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 336 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT toDateTime(MergeTree, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(MergeTree, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'MergeTree' in scope SELECT toDateTime(MergeTree, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 338 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 339 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 340 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 343 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 346 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 347 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 350 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 351 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 352 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 353 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 354 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 355 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 356 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(toNullable(9223372036854775806), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(toNullable(9223372036854775806), 2)': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt64) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 358 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 359 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 360 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE toInt64(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE toInt64(0)': Received from localhost:9000. DB::Exception: Illegal type Int64 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 361 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE `03657_gby_overflow__fuzz_7` Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE `03657_gby_overflow__fuzz_7`': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_7' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE `03657_gby_overflow__fuzz_7`. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 363 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 364 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 367 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 368 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 369 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 370 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 371 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 372 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 373 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 375 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 378 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, materialize(2)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, materialize(2))': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 379 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 380 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 381 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE 1025 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) WHERE 1025': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 382 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 383 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0)))))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))) AS ts FROM numbers_mt(toInt256(9223372036854775806), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))) AS ts FROM numbers_mt(toInt256(9223372036854775806), 2)': Received from localhost:9000. DB::Exception: Illegal type Int256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 388 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 390 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_39`, toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_39`, toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_39' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_39`, toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 19. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 391 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(`03657_gby_overflow__fuzz_2`, toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(`03657_gby_overflow__fuzz_2`, toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_2' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(`03657_gby_overflow__fuzz_2`, toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 19. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 22. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 23. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 24. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 25. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 27. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 28. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 29. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 31. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd Fuzzing step 392 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 393 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_5`, toNullable(toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_5`, toNullable(toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_5' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_5`, toNullable(toLowCardinality(toLowCardinality(0)))))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 394 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 397 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 398 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 399 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 401 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 404 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 407 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(65536, 0))) AS ts FROM numbers_mt(toLowCardinality(toInt128(9223372036854775806)), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(65536, 0))) AS ts FROM numbers_mt(toLowCardinality(toInt128(9223372036854775806)), 2)': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Int128) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 409 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 410 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 411 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 412 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 413 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(toInt128(9223372036854775807), 0)))))), toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(toInt128(9223372036854775807), 0)))))), toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(toInt128(9223372036854775807), 0)))))), toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 24. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 27. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 28. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 30. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 31. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 Fuzzing step 414 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 415 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 416 out of 1000 SELECT toDateTime(toInt64(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'SELECT toDateTime(toInt64(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 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 SELECT toDateTime(toInt64(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x000000000724e120 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 417 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 418 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 419 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(9223372036854775806), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(9223372036854775806), 2)': 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(9223372036854775806). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 420 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 424 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 425 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 426 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 431 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 432 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 433 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 434 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 435 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 436 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 438 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 440 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 442 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT toDateTime(numbers_mt(9223372036854775806, 2), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT toDateTime(numbers_mt(9223372036854775806, 2), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 444 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, toNullable(toInt128(9223372036854775807)), 2) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, toNullable(toInt128(9223372036854775807)), 2)': Received from localhost:9000. DB::Exception: Illegal type Nullable(Int128) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 445 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 446 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 447 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) Got boring AST Fuzzing step 448 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(toNullable(9223372036854775806), materialize(2)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(toNullable(9223372036854775806), materialize(2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt64) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 449 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toLowCardinality(0)) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 451 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 452 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 453 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(9223372036854775806), 2) GROUP BY toLowCardinality(materialize(0)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(9223372036854775806), 2) GROUP BY toLowCardinality(materialize(0))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt64) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 455 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 456 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, materialize(2)) GROUP BY toLowCardinality(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, materialize(2)) GROUP BY toLowCardinality(0)': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 457 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 458 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 459 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 460 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 461 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 462 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 463 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 464 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 465 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 466 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 467 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 468 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 469 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 470 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 471 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 472 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 473 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 474 out of 1000 SELECT `03657_gby_overflow__fuzz_14`, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, materialize(2)) GROUP BY toLowCardinality(0) Error on processing query 'SELECT `03657_gby_overflow__fuzz_14`, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(9223372036854775806, materialize(2)) GROUP BY toLowCardinality(0)': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 475 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 476 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 477 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 478 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 479 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 480 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 481 out of 1000 SELECT toDateTime(MergeTree, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Error on processing query 'SELECT toDateTime(MergeTree, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'MergeTree' in scope SELECT toDateTime(MergeTree, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 482 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 483 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 485 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 487 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 488 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE `03657_gby_overflow__fuzz_41` GROUP BY toLowCardinality(materialize(toLowCardinality(0))) Error on processing query 'SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE `03657_gby_overflow__fuzz_41` GROUP BY toLowCardinality(materialize(toLowCardinality(0)))': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_41' in scope SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) PREWHERE `03657_gby_overflow__fuzz_41` GROUP BY toLowCardinality(materialize(toLowCardinality(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 489 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 490 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 491 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0 Error on processing query 'SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 492 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0))))))), 0) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0))))))), 0)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(toDa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 493 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 494 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 496 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(9223372036854775806, 2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 497 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 499 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 500 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE toNullable(9223372036854775807) GROUP BY toLowCardinality(0) Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE toNullable(9223372036854775807) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers_mt) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 501 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 502 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 503 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(0, 2) GROUP BY 0 Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(0, 2) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(0, 2) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 504 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(any(val) RESPECT NULLS, toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(any(val) RESPECT NULLS, toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'val' in scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(any(val) RESPECT NULLS, toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 506 out of 1000 SELECT toLowCardinality(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WITH TOTALS Error on processing query 'SELECT toLowCardinality(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 507 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 508 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 509 out of 1000 SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_34`, 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Error on processing query 'SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_34`, 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_34' in scope SELECT materialize(9223372036854775806), toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_34`, 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 510 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 511 out of 1000 EXPLAIN PIPELINE header = true SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 512 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(2)) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(2)) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 513 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 514 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 515 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 516 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toLowCardinality(0)) WITH CUBE Got boring AST Fuzzing step 517 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 519 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 520 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 521 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 522 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 523 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 524 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE val GROUP BY toLowCardinality(0) WITH CUBE Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE val GROUP BY toLowCardinality(0) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression identifier 'val' in scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE val GROUP BY toLowCardinality(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 525 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 526 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 527 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 528 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY GROUPING SETS ((toLowCardinality(0))) WITH CUBE Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY GROUPING SETS ((toLowCardinality(0))) WITH CUBE': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 529 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 530 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(numbers_mt(9223372036854775806, 2), toInt64(0))) AS ts FROM numbers_mt(0, 2) GROUP BY toLowCardinality(0) WITH CUBE Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(numbers_mt(9223372036854775806, 2), toInt64(0))) AS ts FROM numbers_mt(0, 2) GROUP BY toLowCardinality(0) WITH CUBE': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(numbers_mt(9223372036854775806, 2), toInt64(0))) AS ts FROM numbers_mt(0, 2) GROUP BY toLowCardinality(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 8. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 531 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('9223372036854775806'): 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 532 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE Error on processing query 'SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 533 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 534 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE Got boring AST Fuzzing step 535 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 9223372036854775806, toDateTime(toInt64(materialize(materialize(0))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT 9223372036854775806, toDateTime(toInt64(materialize(materialize(0))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': 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 SELECT 9223372036854775806, toDateTime(toInt64(materialize(materialize(0))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 537 out of 1000 SELECT 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 538 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toInt256(toNullable(toInt256(9223372036854775807))), 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH ROLLUP WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toInt256(toNullable(toInt256(9223372036854775807))), 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH ROLLUP WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 183 ('CUBE'): CUBE WITH TOTALS. Expected TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 540 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 541 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toUInt256(2)) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toUInt256(2)) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 542 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 543 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 544 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(1048577, 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(1048577, 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(1048577, 0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 545 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 546 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 547 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 548 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 549 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE `03657_gby_overflow__fuzz_45` GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE `03657_gby_overflow__fuzz_45` GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_45' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) PREWHERE `03657_gby_overflow__fuzz_45` GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 550 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 551 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 552 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 553 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 554 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 555 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 556 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 557 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 558 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 559 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 560 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 561 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE number GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) WHERE number GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column __table1.number for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000789474b 4. /build/src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x0000000012fca437 5. /build/src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001316afe3 6. /build/contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000011639b78 7. /build/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>>&) @ 0x0000000011668269 8. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661f15 9. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 10. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 11. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 12. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 15. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 17. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 18. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 19. ? @ 0x00007f528afa4ac3 20. ? @ 0x00007f528b036850 Fuzzing step 562 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 563 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 565 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 566 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 567 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 568 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toNullable(0)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(toNullable(0)) WITH TOTALS Got boring AST Fuzzing step 570 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 572 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 573 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 574 out of 1000 EXPLAIN optimize = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN optimize = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592892 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 575 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 576 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 577 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(toInt256(9223372036854775807)), 2) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(toInt256(9223372036854775807)), 2) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Int256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 578 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 580 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 581 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, 2) WHERE 65536 GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, 2) WHERE 65536 GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt32 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 582 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, toNullable(2)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100, toNullable(2)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 583 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 585 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 587 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 100, 2) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type DateTime expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 588 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 589 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 590 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 591 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100, 2) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 592 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt256(toInt256(9223372036854775807)), toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt256(toInt256(9223372036854775807)), toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt256(toInt256(9223372036854775807)), toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 594 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 596 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 597 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 598 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 599 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 600 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 601 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 602 out of 1000 SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS': 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 SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 603 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 604 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 605 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 606 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 607 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 609 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0)))))), 0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0)))))), 0) 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 toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0)))))), 0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 610 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE toNullable(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 611 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 613 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 614 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 615 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 616 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 617 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 618 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 619 out of 1000 SELECT `03657_gby_overflow__fuzz_45`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT `03657_gby_overflow__fuzz_45`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_45' in scope SELECT `03657_gby_overflow__fuzz_45`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 620 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 621 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 622 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 0) 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 toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 623 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 624 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 625 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 626 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 627 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 628 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 629 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 630 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 631 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 632 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 633 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 634 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 635 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 636 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 637 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 639 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(toInt128(100)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(toInt128(100)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Int128 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 640 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 642 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 643 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 644 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 645 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(9223372036854775807)), materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(9223372036854775807)), materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(9223372036854775807)), materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 646 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 647 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 648 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 649 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_32`, 0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_32`, 0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_32' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_32`, 0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 19. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 650 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 651 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 653 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 654 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(`03657_gby_overflow__fuzz_43`, 0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(`03657_gby_overflow__fuzz_43`, 0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_43' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(`03657_gby_overflow__fuzz_43`, 0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 655 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 656 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 658 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 659 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), 100) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), 100) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type DateTime expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 660 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 661 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 662 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 663 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 664 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 665 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 666 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 667 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 668 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 669 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 670 out of 1000 SELECT numbers_mt(2), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT numbers_mt(2), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT numbers_mt(2), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 8. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 671 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 672 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 673 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 674 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 675 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(0)), toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(0)), toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(0)), toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 15. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 676 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 677 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 679 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 680 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 682 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 683 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 684 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 685 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 686 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 688 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 689 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 690 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 691 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 693 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 694 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 699 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(9223372036854775806), 100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(9223372036854775806), 100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS': 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(9223372036854775806). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 700 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 701 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 702 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 704 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 705 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 706 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 707 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 708 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 709 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 710 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 714 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 716 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 717 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 719 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': 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(100). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 720 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 721 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 722 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(key, 100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(key, 100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Missing columns: 'key' while processing query: 'key', required columns: 'key' 'key'. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001188fb0a 4. /build/src/Interpreters/TreeRewriter.cpp:1537: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000011897b35 5. /build/src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011901b31 6. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 7. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 8. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 9. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 10. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 723 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(100)) WHERE materialize(materialize(0)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(100)) WHERE materialize(materialize(0)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 724 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 725 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 726 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 727 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 728 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 729 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 730 out of 1000 EXPLAIN `header, description` = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN `header, description` = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "header, description" for EXPLAIN PLAN query. Supported settings: sorting, optimize, indexes, json, actions, description, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x00000000115971ab 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592a82 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 731 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 732 out of 1000 SELECT toDateTime(`03657_gby_overflow__fuzz_20`, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(`03657_gby_overflow__fuzz_20`, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_20' in scope SELECT toDateTime(`03657_gby_overflow__fuzz_20`, fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 733 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 734 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 735 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(materialize(256), 0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(materialize(256), 0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(materialize(256), 0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 736 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 737 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 738 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 739 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 740 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 741 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 742 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 743 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 744 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 745 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 746 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 747 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toInt256(toNullable(toInt256(9223372036854775807))), 0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toInt256(toNullable(toInt256(9223372036854775807))), 0) 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 toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toInt256(toNullable(toInt256(9223372036854775807))), 0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 748 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(materialize(toInt256(9223372036854775807)), toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(materialize(toInt256(9223372036854775807)), toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 749 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 750 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 751 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(100)) GROUP BY toLowCardinality(toLowCardinality(0)) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(100)) GROUP BY toLowCardinality(toLowCardinality(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Int256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 752 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Int256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 753 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 754 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 755 out of 1000 SELECT 38, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(`03657_gby_overflow__fuzz_29`, 0) WITH TOTALS Error on processing query 'SELECT 38, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(`03657_gby_overflow__fuzz_29`, 0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_29' in scope SELECT 38, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(`03657_gby_overflow__fuzz_29`, 0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 756 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 757 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(toNullable(100))) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(toNullable(100))) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': 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(100, 'Nullable(UInt8)')). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 758 out of 1000 EXPLAIN PIPELINE compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(`03657_gby_overflow__fuzz_14`, 0)))))), 0) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(`03657_gby_overflow__fuzz_14`, 0)))))), 0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 759 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 760 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 761 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 762 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 763 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 764 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 765 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 766 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 767 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(toLowCardinality(0)), 100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(toLowCardinality(0)), 100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 17. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 18. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 768 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 769 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 770 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE materialize(0) WHERE materialize(0) GROUP BY toLowCardinality(materialize(toNullable(0))) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE materialize(0) WHERE materialize(0) GROUP BY toLowCardinality(materialize(toNullable(0))) WITH TOTALS': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers_mt) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 771 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt128(0))))) AS ts FROM numbers_mt(100) PREWHERE toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)), toInt64(0)), 0) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt128(0))))) AS ts FROM numbers_mt(100) PREWHERE toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)), toInt64(0)), 0) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt128(0))))) AS ts FROM numbers_mt(100) PREWHERE toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)), toInt64(0)), 0) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 772 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 773 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_28`, toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_28`, toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_28' in scope SELECT toDateTime(fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_28`, toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 13. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 774 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 775 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 776 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 777 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 778 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 779 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 780 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 781 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 782 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 783 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 784 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 785 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 786 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 787 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 788 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 789 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toInt64(toUInt128(0)), 0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toInt64(toUInt128(0)), 0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toInt64(toUInt128(0)), 0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 790 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 791 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 792 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 793 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 794 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 795 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toNullable(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) WHERE materialize(0) GROUP BY toNullable(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 797 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) WITH TOTALS Got boring AST Fuzzing step 798 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(100)) WHERE materialize(0) GROUP BY toNullable(0) WITH TOTALS Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toLowCardinality(100)) WHERE materialize(0) GROUP BY toNullable(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 799 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) WITH TOTALS Got boring AST Fuzzing step 800 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) WITH TOTALS Got boring AST Fuzzing step 801 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 803 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 804 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 805 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 806 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(toNullable(toInt256(9223372036854775807))), 100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toInt256(toNullable(toInt256(9223372036854775807))), 100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(Int256) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 807 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) PREWHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(toNullable(100)) PREWHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 808 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 809 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 810 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 811 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(toNullable(toInt256(100))) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) AS ts FROM numbers_mt(toNullable(toInt256(100))) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(Int256) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 812 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(toNullable(toUInt256(0)))) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(toNullable(toUInt256(0)))) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(toNullable(toUInt256(0)))) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 813 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(materialize(toNullable(toUInt256(0)))) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(materialize(toNullable(toUInt256(0)))) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) of column materialize(materialize(_CAST('0'_Nullable(UInt256), 'Nullable(UInt256)'_String))) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000789474b 4. /build/src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x0000000012fca437 5. /build/src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001316afe3 6. /build/contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000011639b78 7. /build/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>>&) @ 0x0000000011668269 8. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661f15 9. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 10. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 11. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 12. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 15. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 17. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 18. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 19. ? @ 0x00007f528afa4ac3 20. ? @ 0x00007f528b036850 Fuzzing step 814 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 815 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(materialize(100)) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': 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(100). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027af4d 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 816 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toUInt256(0)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toUInt256(0)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column materialize(_CAST('0'_UInt256, 'UInt256'_String)) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000789474b 4. /build/src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x0000000012fca437 5. /build/src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001316afe3 6. /build/contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000011639b78 7. /build/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>>&) @ 0x0000000011668269 8. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661f15 9. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 10. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 11. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 12. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 15. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 17. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 18. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 19. ? @ 0x00007f528afa4ac3 20. ? @ 0x00007f528b036850 Fuzzing step 817 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 818 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(numbers_mt(2), toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(numbers_mt(2), toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT toDateTime(fromUnixTimestamp64Micro(numbers_mt(2), toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 8. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 819 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 820 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 821 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 822 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 823 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE `03657_gby_overflow__fuzz_30` WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE `03657_gby_overflow__fuzz_30` WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_30' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE `03657_gby_overflow__fuzz_30` WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 824 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 825 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 826 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 827 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 828 out of 1000 SELECT toNullable(toLowCardinality(toLowCardinality(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT toNullable(toLowCardinality(toLowCardinality(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 830 out of 1000 SELECT toNullable(toLowCardinality(toLowCardinality(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 831 out of 1000 SELECT toNullable(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT toNullable(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS Error on processing query 'SELECT toNullable(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT toNullable(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 833 out of 1000 SELECT toNullable(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 834 out of 1000 SELECT toNullable(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT toLowCardinality(0), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 SELECT toLowCardinality(0), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 837 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(toLowCardinality(0)) GROUP BY toLowCardinality(materialize(toNullable(0))) Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(materialize(toNullable(0))) Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) Got boring AST Fuzzing step 842 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(0)) Got boring AST Fuzzing step 843 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 845 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 846 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 847 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 848 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 849 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(`03657_gby_overflow__fuzz_15`, 0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(`03657_gby_overflow__fuzz_15`, 0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_15' in scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(`03657_gby_overflow__fuzz_15`, 0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 850 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 851 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 852 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Got boring AST Fuzzing step 853 out of 1000 EXPLAIN ESTIMATE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toNullable(toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toLowCardinality(0)) Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 857 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 858 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 859 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 860 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(0) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 861 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toLowCardinality(0)) Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toLowCardinality(0)) Got boring AST Fuzzing step 863 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(0)))) Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(256) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(0)))) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) WHERE materialize(256) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(0))))': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column materialize(256_UInt16) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000789474b 4. /build/src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x0000000012fca437 5. /build/src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001316afe3 6. /build/contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000011639b78 7. /build/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>>&) @ 0x0000000011668269 8. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661f15 9. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 10. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 11. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 12. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 15. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 17. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 18. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 19. ? @ 0x00007f528afa4ac3 20. ? @ 0x00007f528b036850 Fuzzing step 865 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0))': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070125 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 868 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 869 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0))': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070125 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 870 out of 1000 SELECT 0, toDateTime(`03657_gby_overflow__fuzz_36`, fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Error on processing query 'SELECT 0, toDateTime(`03657_gby_overflow__fuzz_36`, fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_36' in scope SELECT 0, toDateTime(`03657_gby_overflow__fuzz_36`, fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 871 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 872 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 873 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 874 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0))': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070125 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 875 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0))': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070125 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 876 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0))': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070125 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 877 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 878 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(materialize(toLowCardinality(0))))) Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(materialize(toLowCardinality(0))))) Got boring AST Fuzzing step 880 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(materialize(toLowCardinality(0))))) Got boring AST Fuzzing step 881 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(toLowCardinality(100)) GROUP BY GROUPING SETS ((toLowCardinality(materialize(toLowCardinality(0))))) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(toLowCardinality(100)) GROUP BY GROUPING SETS ((toLowCardinality(materialize(toLowCardinality(0)))))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 882 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(materialize(toLowCardinality(0))))) Got boring AST Fuzzing step 883 out of 1000 EXPLAIN json = true SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(materialize(0)))) Error on processing query 'EXPLAIN json = true SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(materialize(0))))': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "json" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592892 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 884 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((materialize(toLowCardinality(0)))) Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((materialize(toLowCardinality(0)))) Got boring AST Fuzzing step 886 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((materialize(toLowCardinality(0)))) Got boring AST Fuzzing step 887 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((materialize(toLowCardinality(0)))) Got boring AST Fuzzing step 888 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 890 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) GROUP BY GROUPING SETS ((toLowCardinality(0))) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) GROUP BY GROUPING SETS ((toLowCardinality(0)))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: DateTime. In query SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) GROUP BY GROUPING SETS ((toLowCardinality(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x0000000010987c6b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x00000000110955aa 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::validateFilters(std::shared_ptr const&) @ 0x000000001109514d 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5622: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461b9 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 891 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toDateTime(fromUnixTimestamp64Micro(toInt64(ts + 1, 0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toDateTime(fromUnixTimestamp64Micro(toInt64(ts + 1, 0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'ts' in scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toDateTime(fromUnixTimestamp64Micro(toInt64(ts + 1, 0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((0)). Maybe you meant: ['ts']. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 19. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 893 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 897 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 898 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 900 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 901 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 902 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 903 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(0)))) Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(ts, 100) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(toNullable(0))))) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(ts, 100) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(toNullable(0)))))': Received from localhost:9000. DB::Exception: Illegal type DateTime expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027a98f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 905 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(0)))) Got boring AST Fuzzing step 906 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 909 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('0'): 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 910 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 911 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 913 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 916 out of 1000 EXPLAIN ESTIMATE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 EXPLAIN SYNTAX SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 920 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 925 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 928 out of 1000 EXPLAIN ESTIMATE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 EXPLAIN SYNTAX SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0))))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('0'): 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowC. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 931 out of 1000 EXPLAIN SYNTAX SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 932 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 935 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 936 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 937 out of 1000 EXPLAIN PIPELINE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 938 out of 1000 EXPLAIN QUERY TREE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 EXPLAIN ESTIMATE SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 942 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 943 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 944 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 945 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 946 out of 1000 EXPLAIN AST SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Got boring AST Fuzzing step 947 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(toUInt256(0)))) Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 950 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 951 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) WITH CUBE Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) WITH CUBE': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 952 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 953 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 954 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toDateTime(materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toDateTime(materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0)))': 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 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toDateTime(materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x000000000724e120 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 955 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 956 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) Got boring AST Fuzzing step 957 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY GROUPING SETS ((toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toLowCardinality(0)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(0))))), toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(0))))), toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(0))))), toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 15. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 962 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 963 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toInt256(toNullable(toInt256(9223372036854775807))), toUInt256(0)))) AS ts FROM numbers_mt(100) WITH TOTALS Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toInt256(toNullable(toInt256(9223372036854775807))), toUInt256(0)))) AS ts FROM numbers_mt(100) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toInt256(toNullable(toInt256(9223372036854775807))), toUInt256(0)))) AS ts FROM numbers_mt(100) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 964 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 967 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 968 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 969 out of 1000 SELECT 0, `03657_gby_overflow__fuzz_32`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) WHERE plus(toInt64(toUInt128(0)), ts, 1) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT 0, `03657_gby_overflow__fuzz_32`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) WHERE plus(toInt64(toUInt128(0)), ts, 1) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_32' in scope SELECT 0, `03657_gby_overflow__fuzz_32`, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) WHERE plus(toInt64(toUInt128(0)), ts, 1) GROUP BY toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 970 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 971 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toLowCardinality(materialize(toLowCardinality(0))), 0) WITH TOTALS Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toLowCardinality(materialize(toLowCardinality(0))), 0) 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 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(toLowCardinality(materialize(toLowCardinality(0))), 0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 972 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(toNullable(100)) GROUP BY toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(toNullable(100)) GROUP BY toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027b1c1 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027aa04 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 973 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 974 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 975 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 976 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 978 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 979 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 980 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))) AS ts FROM numbers_mt(100) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 981 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(toUInt128(0))))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 984 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 985 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toUInt128(0), toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toUInt128(0), toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toUInt128(0), toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 24. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 26. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 27. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 28. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 29. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 30. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 31. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 Fuzzing step 986 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))) AS ts FROM numbers_mt(100) PREWHERE fromUnixTimestamp64Micro(toInt64(0)) GROUP BY toLowCardinality(0) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))) AS ts FROM numbers_mt(100) PREWHERE fromUnixTimestamp64Micro(toInt64(0)) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers_mt) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 987 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(materialize(0)) Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toNullable(0))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toNullable(0))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 990 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toNullable(0))))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 991 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 992 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0)': 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 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 994 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 995 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0 Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 996 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Got boring AST Fuzzing step 997 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) WHERE toInt256(toInt256(9223372036854775807)) GROUP BY toLowCardinality(0) Error on processing query 'SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) WHERE toInt256(toInt256(9223372036854775807)) GROUP BY toLowCardinality(0)': Received from localhost:9000. DB::Exception: Illegal type Int256 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 998 out of 1000 SELECT 0, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toNullable(0))))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT materialize(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toNullable(0))))), toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) AS ts FROM numbers_mt(100) GROUP BY toLowCardinality(0) 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 toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers(2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0)))))))) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers(2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0))))))))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(DateTime). In query SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers(2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0)))))))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x0000000010987c6b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x00000000110955aa 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::validateFilters(std::shared_ptr const&) @ 0x000000001109514d 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5622: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461b9 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 2 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers(2) Got boring AST Fuzzing step 3 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers(2) Got boring AST Fuzzing step 4 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC') AS ts FROM numbers(2) Got boring AST Fuzzing step 5 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 7 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 8 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 9 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 10 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 11 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 12 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 13 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 14 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 15 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 16 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 17 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 18 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 19 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 20 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 21 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 22 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 23 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) WHERE 9223372036854775806 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) WHERE 9223372036854775806': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 24 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 25 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 26 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 27 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 28 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 29 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 30 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 31 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 32 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 33 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 34 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT `03657_gby_overflow__fuzz_15`, (ts + 1) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Error on processing query 'SELECT `03657_gby_overflow__fuzz_15`, (ts + 1) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2)': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_15' in scope SELECT `03657_gby_overflow__fuzz_15`, (ts + 1) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 36 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 37 out of 1000 SELECT plus(ts) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) PREWHERE toInt64(0) Error on processing query 'SELECT plus(ts) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) PREWHERE toInt64(0)': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope SELECT plus(ts) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) PREWHERE toInt64(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 15. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 38 out of 1000 SELECT equals(ts + 1, 1048576, ts), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Error on processing query 'SELECT equals(ts + 1, 1048576, ts), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope SELECT equals(ts + 1, 1048576, ts), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 39 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 40 out of 1000 SELECT equals(ts + toNullable(1)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Error on processing query 'SELECT equals(ts + toNullable(1)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT equals(ts + toNullable(1)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 41 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 42 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 43 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 44 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 45 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 46 out of 1000 SELECT equals(`03657_gby_overflow__fuzz_26`, ts + toNullable(1), ts), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Error on processing query 'SELECT equals(`03657_gby_overflow__fuzz_26`, ts + toNullable(1), ts), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_26' in scope SELECT equals(`03657_gby_overflow__fuzz_26`, ts + toNullable(1), ts), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 47 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 48 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 49 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) GROUP BY fromUnixTimestamp64Micro(toInt64(toNullable(0))), `03657_gby_overflow__fuzz_39` Error on processing query 'SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) GROUP BY fromUnixTimestamp64Micro(toInt64(toNullable(0))), `03657_gby_overflow__fuzz_39`': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_39' in scope SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) GROUP BY fromUnixTimestamp64Micro(toInt64(toNullable(0))), `03657_gby_overflow__fuzz_39`. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 50 out of 1000 SELECT (ts + toNullable(1)) = ts, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 51 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 53 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 54 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) Got boring AST Fuzzing step 57 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) Got boring AST Fuzzing step 58 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) Got boring AST Fuzzing step 59 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) WHERE toDateTime(fromUnixTimestamp64Micro(2, toInt64(toUInt256(toLowCardinality(toNullable(0)))))) Error on processing query 'SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) WHERE toDateTime(fromUnixTimestamp64Micro(2, toInt64(toUInt256(toLowCardinality(toNullable(0))))))': Received from localhost:9000. DB::Exception: Illegal column toInt64(toUInt256(toLowCardinality(toNullable(0)))) of time zone argument of function, must be a constant string: In scope SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) WHERE toDateTime(fromUnixTimestamp64Micro(2, toInt64(toUInt256(toLowCardinality(toNullable(0)))))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 60 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) Got boring AST Fuzzing step 61 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) AS ts FROM numbers(2) Got boring AST Fuzzing step 62 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT 2, toDateTime(fromUnixTimestamp64Micro(toInt64(0))) AS ts FROM numbers(2) Got boring AST Fuzzing step 64 out of 1000 SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN AST SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 EXPLAIN AST SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 67 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 EXPLAIN AST SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 EXPLAIN AST SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 70 out of 1000 EXPLAIN AST SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 71 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 73 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 74 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM numbers(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM numbers(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('2'): 2 FROM numbers(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 75 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 76 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 78 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 79 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 82 out of 1000 EXPLAIN AST SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 85 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 86 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 87 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT 2 FROM numbers(toNullable(2)) Error on processing query 'SELECT 2 FROM numbers(toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 89 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 91 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 93 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 96 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 98 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 99 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT 2 FROM numbers(materialize(toLowCardinality(2))) Error on processing query 'SELECT 2 FROM numbers(materialize(toLowCardinality(2)))': 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. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 105 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 106 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 107 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 108 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 109 out of 1000 SELECT 2 FROM numbers(toInt64(toLowCardinality(toNullable(0))), 2) Error on processing query 'SELECT 2 FROM numbers(toInt64(toLowCardinality(toNullable(0))), 2)': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(Int64)) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 110 out of 1000 SELECT 2 FROM numbers(2) PREWHERE toLowCardinality(toUInt128(0)) Error on processing query 'SELECT 2 FROM numbers(2) PREWHERE toLowCardinality(toUInt128(0))': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 111 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 112 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 113 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 115 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 117 out of 1000 EXPLAIN SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 120 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 121 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 124 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 125 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 126 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 127 out of 1000 SELECT 1, 2 FROM numbers(2) PREWHERE 2147483648 Error on processing query 'SELECT 1, 2 FROM numbers(2) PREWHERE 2147483648': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 128 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 129 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 130 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 131 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 132 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 133 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 134 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 135 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 136 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 137 out of 1000 SELECT 2 FROM numbers(2) Got boring AST Fuzzing step 138 out of 1000 SELECT 2 FROM numbers(materialize(2)) Error on processing query 'SELECT 2 FROM numbers(materialize(2))': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 139 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 141 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 142 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(MergeTree, toLowCardinality(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))), toLowCardinality(materialize(toLowCardinality(toUInt128(0)))), any(val) RESPECT NULLS, `03657_gby_overflow__fuzz_23`, toInt64(toUInt256(toNullable(0))) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(MergeTree, toLowCardinality(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))), toLowCardinality(materialize(toLowCardinality(toUInt128(0)))), any(val) RESPECT NULLS, `03657_gby_overflow__fuzz_23`, toInt64(toUInt256(toNullable(0)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'MergeTree' in scope SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(MergeTree, toLowCardinality(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0)))))), toLowCardinality(materialize(toLowCardinality(toUInt128(0)))), any(val) RESPECT NULLS, `03657_gby_overflow__fuzz_23`, toInt64(toUInt256(toNullable(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 143 out of 1000 SELECT 2 FROM numbers(`03657_gby_overflow__fuzz_15`, 2) Error on processing query 'SELECT 2 FROM numbers(`03657_gby_overflow__fuzz_15`, 2)': Received from localhost:9000. DB::Exception: Missing columns: '03657_gby_overflow__fuzz_15' while processing query: '`03657_gby_overflow__fuzz_15`', required columns: '03657_gby_overflow__fuzz_15' '03657_gby_overflow__fuzz_15'. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001188fb0a 4. /build/src/Interpreters/TreeRewriter.cpp:1537: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000011897b35 5. /build/src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011901b31 6. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 7. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 8. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 9. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 10. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 144 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 145 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 146 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 147 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 148 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 149 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 150 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 151 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 153 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 154 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 155 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 156 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 157 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 158 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(materialize(2)) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(materialize(2))': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 159 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) Got boring AST Fuzzing step 160 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 162 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 163 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 164 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 165 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 166 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 167 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 168 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 169 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 170 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) Got boring AST Fuzzing step 172 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) Got boring AST Fuzzing step 173 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) GROUP BY `03657_gby_overflow__fuzz_31`, fromUnixTimestamp64Micro(toInt64(toUInt256(toNullable(0)))), materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(toUInt128(0))) Error on processing query 'EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) GROUP BY `03657_gby_overflow__fuzz_31`, fromUnixTimestamp64Micro(toInt64(toUInt256(toNullable(0)))), materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(toUInt128(0)))': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_31' in scope SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) GROUP BY `03657_gby_overflow__fuzz_31`, fromUnixTimestamp64Micro(toInt64(toUInt256(toNullable(0)))), materialize(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(toUInt128(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 14. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 174 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) Got boring AST Fuzzing step 175 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) Got boring AST Fuzzing step 176 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(toNullable(2)) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 178 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 179 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 180 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 181 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 182 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 183 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 184 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(toLowCardinality(toUInt256(2))) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(toLowCardinality(toUInt256(2)))': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt256) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 185 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 186 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 191 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 194 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 196 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 197 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 199 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 201 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Got boring AST Fuzzing step 202 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toInt64(0)), 2 FROM numbers(2) Error on processing query 'SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toInt64(0)), 2 FROM numbers(2)': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), toInt64(0)), 2 FROM numbers(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 204 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY numbers_mt(2), fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0))))), toInt64(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0)) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY numbers_mt(2), fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0))))), toInt64(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY numbers_mt(2), fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(toUInt128(0))))), toInt64(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0)). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 205 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0))))))), materialize(0), materialize(0) Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toUInt128(0)))))), materialize(0), materialize(0) Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toUInt128(0)))))), 0, materialize(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toUInt128(0)))))), 0, materialize(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toUInt128(0)))))), 0, materialize(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 208 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))), materialize(0), 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))), materialize(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))), materialize(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 209 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toUInt128(0)))))), materialize(0), materialize(0) Got boring AST Fuzzing step 210 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))), materialize(0), materialize(0) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), toUInt128(0))))), materialize(0), 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), toUInt128(0))))), materialize(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), toUInt128(0))))), materialize(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 212 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt128(0))))), materialize(0), materialize(0) Got boring AST Fuzzing step 213 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), materialize(toLowCardinality(toUInt256(0))), materialize(0) Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toLowCardinality(toUInt256(0))), materialize(0) Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toLowCardinality(toUInt256(0))), 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toLowCardinality(toUInt256(0))), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toLowCardinality(toUInt256(0))), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 216 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toLowCardinality(toUInt256(0))), materialize(materialize(toLowCardinality(toUInt128(0)))) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toLowCardinality(toUInt256(0))), materialize(toLowCardinality(toUInt128(0))) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(toUInt256(0)), materialize(toLowCardinality(0)) Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), toLowCardinality(toUInt256(0)), materialize(toLowCardinality(0)) Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(numbers(`03657_gby_overflow__fuzz_16`, 100000), 0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), toLowCardinality(toUInt256(0)), toLowCardinality(0) Error on processing query 'EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(numbers(`03657_gby_overflow__fuzz_16`, 100000), 0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), toLowCardinality(toUInt256(0)), toLowCardinality(0)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_16' in scope SELECT fromUnixTimestamp64Micro(toInt64(numbers(`03657_gby_overflow__fuzz_16`, 100000), 0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), toLowCardinality(toUInt256(0)), toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 23. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 24. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 221 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), toLowCardinality(toUInt256(0)), materialize(toLowCardinality(0)) Got boring AST Fuzzing step 222 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(toUInt256(0)), materialize(toLowCardinality(0)) Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 226 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 227 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 228 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(toUInt128(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(toUInt128(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0)': Received from localhost:9000. DB::Exception: Illegal type UInt128 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 229 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))), 0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))), 0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))), 0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 230 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(materialize(2)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 231 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 233 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 234 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 235 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(toLowCardinality(2)) FROM numbers(2) PREWHERE toInt64(toUInt256(toNullable(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(toLowCardinality(2)) FROM numbers(2) PREWHERE toInt64(toUInt256(toNullable(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0)': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 236 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 237 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 238 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 239 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 240 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 242 out of 1000 SELECT materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT materialize(materialize(materialize(2)), toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WITH TOTALS Error on processing query 'SELECT materialize(materialize(materialize(2)), toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(materialize(materialize(2)), toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 244 out of 1000 SELECT materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 246 out of 1000 SELECT materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize(toLowCardinality(toUInt128(0))), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp6. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 248 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) WITH TOTALS Error on processing query 'SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 250 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 Error on processing query 'SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 251 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 Error on processing query 'SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 252 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 253 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) Error on processing query 'SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 254 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Got boring AST Fuzzing step 255 out of 1000 SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(`03657_gby_overflow__fuzz_23`, 2) FROM numbers(toInt256(toLowCardinality(9223372036854775807)), 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(materialize(0)), toLowCardinality(0) Error on processing query 'SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(`03657_gby_overflow__fuzz_23`, 2) FROM numbers(toInt256(toLowCardinality(9223372036854775807)), 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(materialize(0)), toLowCardinality(0)': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Int256) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 256 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT 0, fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 259 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 261 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(0)), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 262 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 0, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 0, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 263 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(toUInt256(0)))))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN AST optimize = true SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN AST optimize = true SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "optimize" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158ef57 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 265 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(`03657_gby_overflow__fuzz_27`, toNullable(0))))), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(`03657_gby_overflow__fuzz_27`, toNullable(0))))), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_27' in scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(`03657_gby_overflow__fuzz_27`, toNullable(0))))), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 19. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 21. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 23. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 24. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 25. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 27. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 28. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 29. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 31. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd Fuzzing step 268 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_41`, toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_41`, toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_41' in scope SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_41`, toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 269 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 270 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(materialize(toInt256(9223372036854775807)), toNullable(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), 0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(toUInt128(0)))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(materialize(toInt256(9223372036854775807)), toNullable(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), 0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(toUInt128(0)))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(materialize(toInt256(9223372036854775807)), toNullable(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toLowCardinality(toNullable(0))))))), 0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(toUInt128(0)))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 18. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 20. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 21. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 24. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 25. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 27. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 30. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e Fuzzing step 271 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(val, 0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), 0, toLowCardinality(0) WITH ROLLUP Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(val, 0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), 0, toLowCardinality(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'val' in scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(val, 0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), 0, toLowCardinality(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 19. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 273 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 274 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 276 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2 FROM numbers(toLowCardinality(2)) WHERE toNullable(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2 FROM numbers(toLowCardinality(2)) WHERE toNullable(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 277 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), toLowCardinality(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), toUInt256(0))))), toLowCardinality(toUInt128(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 23. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 24. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 27. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 28. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 30. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb Fuzzing step 278 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(materialize(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toLowCardinality(2) FROM numbers(materialize(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toLowCardinality(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 279 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))), toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))), toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(materialize(0)) of time zone argument of function, must be a constant string: In scope SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))), toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 281 out of 1000 SELECT toUInt128(toLowCardinality(toLowCardinality(toNullable(0))), 0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(toUInt256(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toUInt128(toLowCardinality(toLowCardinality(toNullable(0))), 0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(toUInt256(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 282 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 283 out of 1000 SELECT toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 284 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 286 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 287 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) WHERE `03657_gby_overflow__fuzz_20` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(toNullable(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) WHERE `03657_gby_overflow__fuzz_20` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(toNullable(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_20' in scope SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) WHERE `03657_gby_overflow__fuzz_20` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(toNullable(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 288 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 289 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 290 out of 1000 SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(toNullable(2)) GROUP BY GROUPING SETS ( (toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))))), (toUInt128(0)), (toLowCardinality(0))) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(toNullable(2)) GROUP BY GROUPING SETS ((toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))))), (toUInt128(0)), (toLowCardinality(0))) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS and GROUPING SETS are not supported together. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104767a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 293 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(toLowCardinality(toLowCardinality(0))), 0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(toLowCardinality(toLowCardinality(0))), 0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(toLowCardinality(toLowCardinality(0))), 0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 18. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 20. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 21. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 24. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 25. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 27. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 30. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e Fuzzing step 294 out of 1000 SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 295 out of 1000 SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 296 out of 1000 SELECT toLowCardinality(0), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 297 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 301 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 302 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 303 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, materialize(1048576, 9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, materialize(1048576, 9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, materialize(1048576, 9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 304 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 306 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_43`, 0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_43`, 0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_43' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_43`, 0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 16. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 307 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(ts + 1, 0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(ts + 1, 0))), toUInt128(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(ts + 1, 0))), toUInt128(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 310 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 311 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 312 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), toNullable(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), toNullable(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), toNullable(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 313 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 314 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(toUInt256(0))), 0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(toUInt256(0))), 0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(toUInt256(0))), 0))), toUInt128(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 315 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 316 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 317 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)), toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)), toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)), toNullable(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 318 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 320 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(toNullable(toUInt128(2))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toLowCardinality(materialize(toLowCardinality(toUInt128(0)))), toNullable(0)))))))), 0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2 FROM numbers(toNullable(toUInt128(2))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(materialize(toLowCardinality(toLowCardinality(materialize(toLowCardinality(toUInt128(0)))), toNullable(0)))))))), 0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt128) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 321 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 322 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 323 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 324 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 325 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 326 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 327 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 329 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 330 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 331 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 334 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 335 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_20`, toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_20`, toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_20' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_20`, toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 13. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 336 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 338 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) WHERE toInt256(toLowCardinality(9223372036854775807)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) WHERE toInt256(toLowCardinality(9223372036854775807)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Int256 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 339 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, toNullable(toLowCardinality(materialize('UTC', toLowCardinality(toNullable(0))))), fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, toNullable(toLowCardinality(materialize('UTC', toLowCardinality(toNullable(0))))), fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, toNullable(toLowCardinality(materialize('UTC', toLowCardinality(toNullable(0))))), fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 18. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 20. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 21. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 24. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 25. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 27. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 30. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e Fuzzing step 340 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 342 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 343 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC'), toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC'), toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC'), toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 344 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(materialize(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 2 FROM numbers(materialize(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS': 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(2). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 345 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), 2 FROM numbers(2) WHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(number, toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), 2 FROM numbers(2) WHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(number, toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toUInt256(0)))), 2 FROM numbers(2) WHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(number, toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 346 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 348 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 349 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 350 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 351 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), materialize(2) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 352 out of 1000 SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) WITH TOTALS Error on processing query 'SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) WITH TOTALS': 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 SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 353 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 356 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 359 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 360 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 361 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 362 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 363 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 367 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 369 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 370 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 F. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 371 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 372 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 374 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 375 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 377 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 380 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 381 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 382 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 F. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 383 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 384 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 386 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 387 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 391 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 392 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 393 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 395 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 396 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 397 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 399 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 400 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(`03657_gby_overflow__fuzz_40`, 0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toNullable(0)) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(`03657_gby_overflow__fuzz_40`, 0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toNullable(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_40' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(`03657_gby_overflow__fuzz_40`, 0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toUInt256(0))), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toNullable(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 19. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 22. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 23. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 25. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 26. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 27. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 28. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 29. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 30. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 31. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 Fuzzing step 401 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(materialize(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))), toUInt128(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0))))), materialize(0)))), 0, toNullable(materialize(toLowCardinality(9223372036854775806))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0))))), materialize(0)))), 0, toNullable(materialize(toLowCardinality(9223372036854775806))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0))))), materialize(0)))), 0, toNullable(materialize(toLowCardinality(9223372036854775806))), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 405 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 407 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 410 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 411 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 412 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbe. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 413 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 414 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 418 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 421 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 422 out of 1000 EXPLAIN SYNTAX SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbe. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 424 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 426 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 427 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 428 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 EXPLAIN ESTIMATE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 430 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 432 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 433 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 434 out of 1000 EXPLAIN SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 435 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbe. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 436 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toUInt128(0)), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 439 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 441 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 442 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 443 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toNullable(toNullable(0)), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toNullable(toNullable(0)), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(toNullable(toNullable(0)), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071625f8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000715c920 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 444 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), materialize(2) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 445 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 446 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': 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 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 447 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 448 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 450 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 451 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 452 out of 1000 SELECT toDateTime(toUInt128(0), fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(toUInt128(0), fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': 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 SELECT toDateTime(toUInt128(0), fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 453 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 455 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 456 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 457 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 458 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(toLowCardinality(0)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(toLowCardinality(0)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 460 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 463 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 464 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toInt64(toLowCardinality(0)), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toInt64(toLowCardinality(0)), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toInt64(toLowCardinality(0)), 0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071625f8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000715c7bb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 465 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 24. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 27. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 28. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 29. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 30. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 31. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 Fuzzing step 468 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 469 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 470 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0)))), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(materialize(0)), toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0)))), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(materialize(0)), toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(0))))), 0)))), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(materialize(0)), toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 23. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 24. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 25. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 27. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 28. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 29. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 31. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd Fuzzing step 471 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) PREWHERE toNullable(toInt256(9223372036854775807)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(0)))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), toNullable(2) FROM numbers(2) PREWHERE toNullable(toInt256(9223372036854775807)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 472 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toNullable(0))))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toInt256(9223372036854775807)), toLowCardinality(toNullable(0))))), materialize(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toInt256(9223372036854775807)), toLowCardinality(toNullable(0))))), materialize(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toInt256(9223372036854775807)), toLowCardinality(toNullable(0))))), materialize(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 474 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 476 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 477 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0), 0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0), 0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0), 0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 21. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 23. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 24. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 27. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 28. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 30. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb Fuzzing step 478 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(toLowCardinality(toNullable(toUInt256(0)))), 0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(toLowCardinality(toNullable(toUInt256(0)))), 0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(toLowCardinality(toNullable(toUInt256(0)))), 0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 479 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 480 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(materialize(toLowCardinality(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(materialize(toLowCardinality(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(materialize(toLowCardinality(0))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 481 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0))))), toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0))))), toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toNullable(toLowCardinality(materialize(toLowCardinality(toNullable(0))))), toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 482 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(numbers(100000), 0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(numbers(100000), 0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(numbers(100000), 0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 8. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 483 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 484 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 486 out of 1000 SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': 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 SELECT toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 487 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, `03657_gby_overflow__fuzz_31`, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, `03657_gby_overflow__fuzz_31`, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_31' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, `03657_gby_overflow__fuzz_31`, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 488 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 489 out of 1000 EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 490 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 491 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(0) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 493 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(0), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(materialize(toLowCardinality(0))), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(0), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(materialize(toLowCardinality(0))), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(0), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(materialize(toLowCardinality(0))), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 494 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt64(materialize(0)), 9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt64(materialize(0)), 9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt64(materialize(0)), 9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 495 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toLowCardinality(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0))))), 0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toLowCardinality(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0))))), 0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toLowCardinality(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0))))), 0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 24. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 26. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 27. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 28. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 29. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 30. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 31. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 Fuzzing step 496 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 497 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT toDateTime(toInt64(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(toInt64(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': 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 SELECT toDateTime(toInt64(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 499 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(toNullable(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(toNullable(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(toNullable(0)), toLowCardinality(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 500 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(1023, 0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(1023, 0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(1023, 0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071625f8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000715c7bb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 502 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toInt64(toLowCardinality(toNullable(0))), fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toInt64(toLowCardinality(toNullable(0))), fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': 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 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toInt64(toLowCardinality(toNullable(0))), fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x000000000724e120 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 503 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 504 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 505 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 506 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 507 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 508 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(materialize(0)), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(materialize(0)), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(materialize(0)), 0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 509 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 510 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 511 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Got boring AST Fuzzing step 512 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE materialize(materialize(toUInt256(0))) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) PREWHERE materialize(materialize(toUInt256(0))) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 513 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toUInt256(0)) WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 515 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(toUInt256(2)) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(toUInt256(2)) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 518 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH ROLLUP WITH TOTALS Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)), 2 FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 519 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 522 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 523 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toLowCardinality(materialize(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toLowCardinality(materialize(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 525 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 527 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 528 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 529 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toInt64(materialize(toNullable(0))))), 0, toUInt256(0) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toInt64(materialize(toNullable(0))))), 0, toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toDateTime'): toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toI. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 530 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(materialize(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(3, toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(materialize(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(3, toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Illegal column toInt64(materialize(toNullable(0))) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(materialize(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(3, toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 531 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(toNullable(0)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(toNullable(0)) WITH ROLLUP Got boring AST Fuzzing step 533 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(toNullable(0)) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(toNullable(0)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(0), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(toNullable(0)) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 534 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(toNullable(0)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), 1024, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), 0, toUInt256(toNullable(0)) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), 1024, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), 0, toUInt256(toNullable(0)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), 1024, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), 0, toUInt256(toNullable(0)) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 536 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP': 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 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 537 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toLowCardinality(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toNullable(0)), 0 WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toNullable(0)), 0 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toNullable(0)), 0 WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 541 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE toLowCardinality(0) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt128(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 543 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), 0 WITH ROLLUP WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 544 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), 0 WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), 0 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), 0 WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 545 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt128(0))))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toNullable(toInt256(9223372036854775806))), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 549 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(toLowCardinality(0), 9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(toLowCardinality(0), 9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt256'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(toLowCardinality(0), 9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl>, DB::(anonymous namespace)::NameToInt256, 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&) @ 0x00000000071d0df8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071cad3b 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 550 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(materialize(toLowCardinality(0)), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(materialize(toLowCardinality(0)), 0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 551 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(materialize(toNullable(0))), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toNullable(toInt256(9223372036854775806)), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt128(toNullable(0)), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), 0 WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), 0 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), 0 WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 555 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(toLowCardinality(2)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(toLowCardinality(2)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 556 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 557 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 559 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 560 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(toLowCardinality(0)), toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(toLowCardinality(0)), toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toInt64(toLowCardinality(0)), toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 561 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(materialize(0)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(toLowCardinality(0)), toUInt256(`03657_gby_overflow__fuzz_7`, 0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(materialize(0)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(toLowCardinality(0)), toUInt256(`03657_gby_overflow__fuzz_7`, 0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_7' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(materialize(0)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(toLowCardinality(0)), toUInt256(`03657_gby_overflow__fuzz_7`, 0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 562 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 563 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), 0 WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), 0 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(toUInt256(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), 0 WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 564 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Got boring AST Fuzzing step 567 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 0 WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 0 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toInt256(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toNullable(0), 0 WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 568 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(materialize(0)), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(materialize(0)), toUInt256(0) WITH ROLLUP Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(materialize(0)), toUInt256(0) WITH ROLLUP': 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 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(toUInt128(0), fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(materialize(0)), toUInt256(0) WITH ROLLUP. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x000000000724e120 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 570 out of 1000 EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toNullable(0), toUInt256(0) WITH ROLLUP': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 571 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0) Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(10, toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(10, toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(10, toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 574 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE `03657_gby_overflow__fuzz_45` WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE `03657_gby_overflow__fuzz_45` WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_45' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) PREWHERE `03657_gby_overflow__fuzz_45` WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 575 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 576 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 577 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 579 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0))), 0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0))), 0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0))), 0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 580 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 581 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(toNullable(2)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(toNullable(2)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 582 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 583 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 584 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 585 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 587 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(3, 0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(3, 0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(3, 0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))), materialize(0), toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 588 out of 1000 EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) Error on processing query 'EXPLAIN PIPELINE header = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0)': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 589 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 590 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), `03657_gby_overflow__fuzz_28`, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(255, toInt64(0))), materialize(0), 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), `03657_gby_overflow__fuzz_28`, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(255, toInt64(0))), materialize(0), 0': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_28' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), `03657_gby_overflow__fuzz_28`, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(255, toInt64(0))), materialize(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 591 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize('UTC', 0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize('UTC', 0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize('UTC', 0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 592 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Got boring AST Fuzzing step 593 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toLowCardinality(0), toInt64(toLowCardinality(toUInt128(0))))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toLowCardinality(0), toInt64(toLowCardinality(toUInt128(0))))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0)': Received from localhost:9000. DB::Exception: Illegal column toInt64(toLowCardinality(toUInt128(0))) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toLowCardinality(0), toInt64(toLowCardinality(toUInt128(0))))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 594 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(MergeTree, 2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(0)) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(MergeTree, 2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(0))': Received from localhost:9000. DB::Exception: Missing columns: 'MergeTree' while processing query: 'MergeTree', required columns: 'MergeTree' 'MergeTree'. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001188fb0a 4. /build/src/Interpreters/TreeRewriter.cpp:1537: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000011897b35 5. /build/src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011901b31 6. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 7. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 8. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 9. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 10. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 595 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toLowCardinality(2)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toLowCardinality(2)) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 597 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 598 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toNullable(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 601 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(9223372036854775807)), 0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(9223372036854775807)), 0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(9223372036854775807)), 0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 602 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(0) WITH CUBE Got boring AST Fuzzing step 604 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH CUBE Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 605 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 606 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), toInt64(0))), materialize(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(materialize(0)), toUInt256(0) WITH CUBE Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), toInt64(0))), materialize(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(materialize(0)), toUInt256(0) WITH CUBE': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), toInt64(0))), materialize(toLowCardinality(0)), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(materialize(0)), toUInt256(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 15. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 607 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(0)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE Got boring AST Fuzzing step 610 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE Got boring AST Fuzzing step 611 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)), toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)), toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)), toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 612 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt256(toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 613 out of 1000 SELECT toLowCardinality(toLowCardinality(toNullable(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE Error on processing query 'SELECT toLowCardinality(toLowCardinality(toNullable(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), toLowCardinality(toNullable(toUInt128(0)))) 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(toLowCardinality(toNullable(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt256(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), toLowCardinality(toNullable(toUInt128(0)))) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071729f8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000716ca80 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 614 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(toNullable(toUInt128(0))) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(toNullable(toUInt128(0))) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(toUInt128(0)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toUInt128(0)) WITH CUBE Error on processing query 'SELECT 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toUInt128(0)) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, materialize(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toUInt128(0)) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 618 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toLowCardinality(toUInt128(0)) WITH CUBE Got boring AST Fuzzing step 619 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), toLowCardinality(toUInt128(0)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toNullable(0)), 0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toNullable(0)), 0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(toLowCardinality(toNullable(0)), 0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 622 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 624 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 625 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) PREWHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 626 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0)))), 'UTC'), toInt64(toLowCardinality(materialize(0))))), 2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), 0 WITH CUBE Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0)))), 'UTC'), toInt64(toLowCardinality(materialize(0))))), 2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), 0 WITH CUBE': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0)))), 'UTC'), toInt64(toLowCardinality(materialize(0))))), 2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x000000001104e3f2 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 627 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 628 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0))))), materialize(0), toUInt128(0) Got boring AST Fuzzing step 630 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(toNullable(0)))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), 0, 0 Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), 0, 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), 0, 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 632 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) Got boring AST Fuzzing step 634 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(2147483647, 0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY GROUPING SETS ( (toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))))), (materialize(0)), (toUInt128(0))) Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(2147483647, 0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY GROUPING SETS ((toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))))), (materialize(0)), (toUInt128(0)))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(2147483647, 0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY GROUPING SETS ((toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))))), (materialize(0)), (toUInt128(0))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 635 out of 1000 SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 0))))), materialize(0), toUInt128(0) Error on processing query 'SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 0))))), materialize(0), toUInt128(0)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 0, 9223372036854775806, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 0))))), materialize(0), toUInt128(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 24. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 26. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 27. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 28. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 29. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 30. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 31. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 Fuzzing step 636 out of 1000 SELECT 0, toLowCardinality(9223372036854775806), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) WHERE toLowCardinality(0) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 SELECT 0, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0), toUInt128(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0), toUInt128(0)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0), toUInt128(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 640 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0)), toLowCardinality(materialize(toLowCardinality(toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0))))))), 0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(toLowCardinality(0)), toUInt128(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0)), toLowCardinality(materialize(toLowCardinality(toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0))))))), 0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(toLowCardinality(0)), toUInt128(0)': 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 fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0)), toLowCardinality(materialize(toLowCardinality(toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0))))))), 0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(toLowCardinality(0)), toUInt128(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071625f8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000715c7bb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 20. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 23. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 24. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 26. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 27. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 29. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 30. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 Fuzzing step 642 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 643 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), 0 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), 0': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), 0. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 644 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(0))))), 0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(0))))), 0), toUInt128(0) 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 fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(0))))), 0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 646 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: DateTime. In query SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x0000000010987c6b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x00000000110955aa 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::validateFilters(std::shared_ptr const&) @ 0x000000001109514d 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5622: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461b9 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 647 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), toNullable(toNullable(0))))), materialize(0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 648 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(toInt256(9223372036854775807), 0))))), materialize(0), toUInt128(toLowCardinality(0)) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(toInt256(9223372036854775807), 0))))), materialize(0), toUInt128(toLowCardinality(0)) 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 fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(toInt256(9223372036854775807), 0))))), materialize(0), toUInt128(toLowCardinality(0)) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 24. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 26. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 27. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 28. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 29. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 30. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 31. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 Fuzzing step 649 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 651 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 653 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 654 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) PREWHERE `03657_gby_overflow__fuzz_31` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) PREWHERE `03657_gby_overflow__fuzz_31` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_31' in scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) PREWHERE `03657_gby_overflow__fuzz_31` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 655 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, toNullable(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(materialize(toLowCardinality(toNullable(0)))), toInt64(toNullable(materialize(0))))), materialize(0), toUInt128(materialize(toUInt256(0))) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, toNullable(2)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(materialize(toLowCardinality(toNullable(0)))), toInt64(toNullable(materialize(0))))), materialize(0), toUInt128(materialize(toUInt256(0))) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 656 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), 0 WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 657 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), 0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 659 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(2147483647, toInt64(toNullable(0)))), materialize(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toNullable(0)))))), 0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(2147483647, toInt64(toNullable(0)))), materialize(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toNullable(0)))))), 0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal column toInt64(toNullable(0)) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(2147483647, toInt64(toNullable(0)))), materialize(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toNullable(0)))))), 0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 660 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 661 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1, 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 663 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 665 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 666 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 667 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toInt128(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toInt128(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0)': Received from localhost:9000. DB::Exception: Illegal type Int128 expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 668 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(0, toInt64(0))), materialize(0), 0 WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(0, toInt64(0))), materialize(0), 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(0, toInt64(0))), materialize(0), 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 669 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(NULL, 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(NULL, 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type Nullable(Nothing) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 670 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(materialize(toNullable(1))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(materialize(toNullable(1))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE': 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(1, 'Nullable(UInt8)')). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 673 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 674 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 675 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))), toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))), toInt64(0))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))), toInt64(0))), materialize(0), toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 676 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 677 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 678 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 679 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 680 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH ROLLUP WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 183 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 681 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 682 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 683 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 684 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0) 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 fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071625f8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000715c7bb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 685 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 686 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 687 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 688 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 689 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 690 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), toUInt128(toUInt256(0)) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), toUInt128(toUInt256(0)) WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(DateTime). In query SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), materialize(0), toUInt128(toUInt256(0)) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x0000000010987c6b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x00000000110955aa 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::validateFilters(std::shared_ptr const&) @ 0x00000000110951f5 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5622: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461b9 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 691 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 692 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_31`, 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_31`, 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_31' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_31`, 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 13. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 693 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 694 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC'), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC'), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0)': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))), 'UTC'), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 695 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 696 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 697 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 698 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 699 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 700 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 701 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE materialize(9223372036854775806) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(materialize(0)) WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE materialize(9223372036854775806) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(materialize(0)) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column materialize(9223372036854775806_UInt64) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000789474b 4. /build/src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x0000000012fca437 5. /build/src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001316afe3 6. /build/contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000011639b78 7. /build/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>>&) @ 0x0000000011668269 8. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661f15 9. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 10. /build/src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x000000001165bf8d 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e0ae 12. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 13. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 702 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 703 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 704 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 705 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 706 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 707 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 708 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toNullable(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toNullable(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 709 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toNullable(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(materialize(toLowCardinality(toUInt256(0))), 0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toNullable(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(materialize(toLowCardinality(toUInt256(0))), 0) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 710 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Got boring AST Fuzzing step 711 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 712 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(numbers(1, 2), 0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(numbers(1, 2), 0) WITH CUBE': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(numbers(1, 2), 0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 8. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 13. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 14. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 17. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 18. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 20. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 23. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 25. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 26. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 27. ? @ 0x00007f528afa4ac3 28. ? @ 0x00007f528b036850 Fuzzing step 713 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 714 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 715 out of 1000 EXPLAIN PIPELINE compact = true SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE Error on processing query 'EXPLAIN PIPELINE compact = true SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 716 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 718 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 719 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 720 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0)))), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0)))), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type DateTime64(6) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 721 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))), toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))), toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(toNullable(0)))))), toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 722 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(materialize(toNullable(toInt256(1)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(materialize(toNullable(toInt256(1)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS': 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('1', 'Nullable(Int256)')). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 723 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_19`, 0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_19`, 0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_19' in scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_19`, 0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 724 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(2147483648, 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_23`, 0))), 0, toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(2147483648, 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_23`, 0))), 0, toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(2147483648, 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_23`, 0))), 0, toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 725 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 726 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 727 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(DateTime) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 728 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 729 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 730 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 731 out of 1000 SELECT toNullable(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toUInt256(0)), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toNullable(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toUInt256(0)), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toNullable(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toUInt256(0)), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 734 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toNullable(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toNullable(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 736 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 737 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(toInt64(toUInt128(0)), 0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(toInt64(toUInt128(0)), 0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(toInt64(toUInt128(0)), 0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 739 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(toLowCardinality(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(toLowCardinality(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS': 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 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(toLowCardinality(toLowCardinality(0)), fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 740 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), 0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), 0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toUInt128'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0)))), 0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: 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&) @ 0x00000000071625f8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000715c7bb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 741 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 742 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 743 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 744 out of 1000 SELECT `03657_gby_overflow__fuzz_30`, fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_15`, toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT `03657_gby_overflow__fuzz_30`, fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_15`, toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_30' in scope SELECT `03657_gby_overflow__fuzz_30`, fromUnixTimestamp64Micro(toInt64(toNullable(`03657_gby_overflow__fuzz_15`, toNullable(0)))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 745 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toUInt128(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toUInt128(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toUInt128(2), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 746 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0))))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 751 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 752 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 753 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toUInt128(0))))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toUInt128(0))))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toUInt128(0))))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toUInt256(0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 755 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt256(0), toUInt128(0) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 757 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(toUInt256(0))) FROM numbers(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 758 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toUInt256(toLowCardinality(toNullable(0))), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_17`, 0)))), toUInt256(toLowCardinality(0)), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_17`, 0)))), toUInt256(toLowCardinality(0)), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_17' in scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(`03657_gby_overflow__fuzz_17`, 0)))), toUInt256(toLowCardinality(0)), toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 21. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 22. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 25. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 26. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 28. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 31. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 Fuzzing step 760 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toInt256(toLowCardinality(9223372036854775807)), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(key, 0)))), toLowCardinality(toNullable(0)), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toInt256(toLowCardinality(9223372036854775807)), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(key, 0)))), toLowCardinality(toNullable(0)), toUInt128(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Int256) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 762 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(1048577, toNullable(0)), toUInt128(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(1048577, toNullable(0)), toUInt128(0) 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 fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(1048577, toNullable(0)), toUInt128(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 763 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 765 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 766 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toInt64(toLowCardinality(0)), materialize(0)))), toNullable(0), toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toInt64(toLowCardinality(0)), materialize(0)))), toNullable(0), toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toInt64(toLowCardinality(0)), materialize(0)))), toNullable(0), toLowCardinality(0) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 767 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toInt64(0), toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toInt64(0), toNullable(0)), toUInt128(toLowCardinality(0)) 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 fromUnixTimestamp64Micro(toInt64(toNullable(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toInt64(0), toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 768 out of 1000 SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(toNullable(0)), toUInt128(toLowCardinality(0)) WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 769 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 EXPLAIN PIPELINE compact = true SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN PIPELINE compact = true SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 771 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 773 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 774 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 775 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 776 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 777 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toNullable(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(toNullable(1)) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt8) expression, must be numeric type. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bf61 5. /build/src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b7a4 6. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 7. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 778 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 779 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 780 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(65536, 0)))), toLowCardinality(0), toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), 0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(65536, 0)))), toLowCardinality(0), toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), 0) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(65536, 0)))), toLowCardinality(0), toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), 0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 23. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 24. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 27. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 28. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 30. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb Fuzzing step 782 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 783 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 784 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toLowCardinality(0))), 0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toLowCardinality(0))), 0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toLowCardinality(0))), 0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 23. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 24. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 27. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 28. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 30. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb Fuzzing step 785 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(toUInt256(0)) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(toUInt256(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(toUInt256(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 786 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0), materialize(0)))), toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(0)))), 0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0), materialize(0)))), toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(0)))), 0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0), materialize(0)))), toLowCardinality(fromUnixTimestamp64Micro(toInt64(toLowCardinality(toLowCardinality(0)))), 0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 787 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 788 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE toInt64(toNullable(toNullable(0))) GROUP BY toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE toInt64(toNullable(toNullable(0))) GROUP BY toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': 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 SELECT fromUnixTimestamp64Micro(toInt64(toUInt128(0))), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE toInt64(toNullable(toNullable(0))) GROUP BY toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 789 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH CUBE WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), 0 WITH CUBE WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 791 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 792 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 793 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 795 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 796 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toInt64(toLowCardinality(toLowCardinality(toNullable(0)))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0))), materialize(toUInt128(0))))), toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toInt64(toLowCardinality(toLowCardinality(toNullable(0)))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0))), materialize(toUInt128(0))))), toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), toInt64(toLowCardinality(toLowCardinality(toNullable(0)))), 2 FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0))), materialize(toUInt128(0))))), toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 797 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(100000, 0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(100000, 0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) 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 fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(100000, 0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 18. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 20. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 21. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 24. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 25. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 27. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 30. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e Fuzzing step 798 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 802 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 804 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 805 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 808 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 809 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 810 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 811 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 813 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 814 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 815 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 816 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 817 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 818 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 820 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 822 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 824 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 825 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 827 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 828 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 829 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 830 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 832 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 833 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 834 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 836 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 839 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 844 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 846 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 847 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 848 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 849 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 851 out of 1000 EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 852 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 855 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 856 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 857 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 858 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 859 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 860 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 861 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 862 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 863 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 864 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 865 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 866 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 867 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 868 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 870 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WHERE val GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WHERE val GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier 'val' in scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WHERE val GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 871 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 872 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 873 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(toInt64(0), fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(toInt64(0), fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': 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 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(toInt64(0), fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 874 out of 1000 SELECT fromUnixTimestamp64Micro(256, toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(256, toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(256, toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 875 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(toInt256(9223372036854775807)), toNullable(0))) FROM numbers(1) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(toInt256(9223372036854775807)), toNullable(0))) FROM numbers(1) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(toInt256(9223372036854775807)), toNullable(0))) FROM numbers(1) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert, DB::(anonymous namespace)::NameToInt64, DB::(anonymous namespace)::ToNumberMonotonicity>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000071ab040 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 876 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, toNullable(toLowCardinality(toLowCardinality(0))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, toNullable(toLowCardinality(toLowCardinality(0))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, toNullable(toLowCardinality(toLowCardinality(0))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 877 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 878 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(`03657_gby_overflow__fuzz_15`, 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), 2, fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(`03657_gby_overflow__fuzz_15`, 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Missing columns: '03657_gby_overflow__fuzz_15' while processing query: '`03657_gby_overflow__fuzz_15`', required columns: '03657_gby_overflow__fuzz_15' '03657_gby_overflow__fuzz_15'. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/src/Interpreters/TreeRewriter.cpp:0: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001188fb0a 4. /build/src/Interpreters/TreeRewriter.cpp:1537: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000011897b35 5. /build/src/Interpreters/evaluateConstantExpression.cpp:80: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011901b31 6. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 7. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 8. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 9. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 10. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 879 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toUInt128(0)) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toUInt128(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toUInt128(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 881 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 882 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 883 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_36`, toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_36`, toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_36' in scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_36`, toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 884 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toUInt128(0)), toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(materialize(0)) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toUInt128(0)), toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(materialize(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(toNullable(0)) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toUInt128(0)), toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(materialize(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 885 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 886 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 887 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(`03657_gby_overflow__fuzz_45`, fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(`03657_gby_overflow__fuzz_45`, fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_45' in scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(`03657_gby_overflow__fuzz_45`, fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 888 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 889 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 890 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 891 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 892 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 893 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 894 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 895 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 896 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))) FROM numbers(1) WITH TOTALS': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 897 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), toUInt128(0)) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), toUInt128(0)) 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 fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), toUInt128(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 898 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(toInt128(9223372036854775806)), toInt64(0))), toLowCardinality(toLowCardinality(0)), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(toInt128(9223372036854775806)), toInt64(0))), toLowCardinality(toLowCardinality(0)), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: The first argument for function fromUnixTimestamp64Micro must be integer: In scope SELECT fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toLowCardinality(toInt128(9223372036854775806)), toInt64(0))), toLowCardinality(toLowCardinality(0)), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, char const* const&) @ 0x000000000704e5ab 4. /build/src/Functions/FunctionUnixTimestamp64.h:0: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c701 5. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 900 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 901 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 902 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE numbers_mt(toLowCardinality(toNullable(9223372036854775806)), 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE numbers_mt(toLowCardinality(toNullable(9223372036854775806)), 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE numbers_mt(toLowCardinality(toNullable(9223372036854775806)), 2) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 903 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 904 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 905 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 906 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 907 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 908 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 909 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(toNullable(0)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(toNullable(0)) WITH TOTALS Got boring AST Fuzzing step 911 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE `03657_gby_overflow__fuzz_0` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(toNullable(toLowCardinality(0))) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE `03657_gby_overflow__fuzz_0` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(toNullable(toLowCardinality(0))) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_0' in scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE `03657_gby_overflow__fuzz_0` GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(toNullable(toLowCardinality(0))) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 912 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(toNullable(0)) WITH TOTALS Got boring AST Fuzzing step 913 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toNullable(0)) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toNullable(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(toNullable(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 914 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toInt64(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toInt64(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toInt64(fromUnixTimestamp64Micro(toInt64(toUInt128(0))), toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 916 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 917 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 918 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 919 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 921 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 922 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(100, fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(100, fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': 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 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(100, fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 923 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 924 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 925 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE toDateTime(fromUnixTimestamp64Micro(3, toInt64(toUInt256(0)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE toDateTime(fromUnixTimestamp64Micro(3, toInt64(toUInt256(0)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal column toInt64(toUInt256(0)) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) WHERE toDateTime(fromUnixTimestamp64Micro(3, toInt64(toUInt256(0)))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 17. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 18. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 21. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 22. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 24. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 27. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 29. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 30. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 31. ? @ 0x00007f528afa4ac3 Fuzzing step 926 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE 9223372036854775807 GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE 9223372036854775807 GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Table function storage SystemNumbers (table _table_function.numbers) does not support PREWHERE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x00000000110b10c0 5. /build/src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x000000001165f775 6. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 7. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 8. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 9. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 12. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 14. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 15. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 16. ? @ 0x00007f528afa4ac3 17. ? @ 0x00007f528b036850 Fuzzing step 927 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 928 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 929 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 930 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 931 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 932 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 933 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 934 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 935 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(number, 0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(number, 0), toLowCardinality(0) 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 fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(number, 0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x0000000011070352 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 936 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 937 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 938 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 939 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 940 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 941 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 942 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 943 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(materialize(0))))), fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 944 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(materialize(0)) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(materialize(0)) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(materialize(0)) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 945 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 946 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 947 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(DateTime). In query SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(toNullable(0)))))) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x0000000010987c6b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x00000000110955aa 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::validateFilters(std::shared_ptr const&) @ 0x000000001109514d 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5622: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461b9 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 948 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 949 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 950 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 951 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 952 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), 0 WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 953 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(materialize(9223372036854775807), 0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 954 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 955 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 956 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 957 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_ast" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 958 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 959 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 960 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(0) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 961 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(0) WITH TOTALS Got boring AST Fuzzing step 962 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Got boring AST Fuzzing step 964 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Got boring AST Fuzzing step 965 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Got boring AST Fuzzing step 966 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Got boring AST Fuzzing step 967 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Got boring AST Fuzzing step 968 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toInt64(toNullable(toLowCardinality(toLowCardinality(0)))), 0)) FROM numbers(toInt64(materialize(toUInt256(0))), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toInt64(toNullable(toLowCardinality(toLowCardinality(0)))), 0)) FROM numbers(toInt64(materialize(toUInt256(0))), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS': 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): toInt64(materialize(_CAST('0', 'UInt256'))). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x000000000703bd2b 4. /build/src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011902210 5. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 6. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 7. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 8. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 9. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 969 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(0))) WITH TOTALS Got boring AST Fuzzing step 970 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(toLowCardinality(0)))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(numbers(100000), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(toLowCardinality(0)))) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(numbers(100000), 1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toLowCardinality(toNullable(toUInt128(toLowCardinality(0)))) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown function numbers: While processing numbers(100000). Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String const&, String&) @ 0x000000000702346b 4. /build/src/Functions/FunctionFactory.cpp:81: DB::FunctionFactory::getImpl(String const&, std::shared_ptr) const @ 0x00000000070224f8 5. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::FunctionFactory::get(String const&, std::shared_ptr) const @ 0x0000000007022a81 6. /build/src/Interpreters/ActionsVisitor.cpp:1110: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x00000000111e6ada 7. /build/src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x00000000111dcd15 8. /build/src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000111bc521 9. /build/src/Interpreters/ExpressionAnalyzer.cpp:1823: DB::ExpressionAnalyzer::getConstActionsDAG(std::vector> const&) @ 0x00000000111cab14 10. /build/contrib/llvm-project/libcxx/include/vector:432: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000011901ddf 11. /build/contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000119025f9 12. /build/contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x000000001027bced 13. /build/src/TableFunctions/TableFunctionNumbers.cpp:79: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x000000001027b72f 14. /build/src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x00000000104d1c28 15. /build/src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000110fa652 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000110501e4 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x0000000011072ee1 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5441: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104504e 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 20. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 21. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 23. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 24. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 25. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 27. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 29. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 30. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 31. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e Fuzzing step 972 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toNullable(toUInt128(toLowCardinality(0)))) WITH TOTALS Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toNullable(toUInt128(toLowCardinality(0)))) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 0, toLowCardinality(toNullable(toUInt128(toLowCardinality(0)))) WITH TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x0000000010e95d0b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x000000001105687a 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001107031f 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:5480: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x000000001104538d 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 973 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 975 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 976 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 978 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 979 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 982 out of 1000 EXPLAIN QUERY TREE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 985 out of 1000 EXPLAIN SYNTAX SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 987 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 991 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 993 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 995 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 996 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 997 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 998 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST Fuzzing step 999 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)) FROM numbers(1) GROUP BY toDateTime(fromUnixTimestamp64Micro(toInt64(0))), toLowCardinality(0), toNullable(toUInt128(toLowCardinality(0))) WITH TOTALS Got boring AST 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 `03657_gby_overflow__fuzz_0` ( `key` Array(UInt64), `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_0` (`key` Array(UInt64), `val` UInt16) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 2 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_1` ( `key` Array(UInt64), `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_1` (`key` Array(UInt64), `val` UInt16) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 3 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_2` ( `key` UInt64, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 4 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_3` ( `key` UInt16, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 5 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_4` ( `key` UInt16, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 6 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_5` ( `key` UInt16, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_6` ( `key` Date32, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 8 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_7` ( `key` LowCardinality(Date32), `val` Nullable(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_8` ( `key` LowCardinality(Date32), `val` Nullable(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_9` ( `key` Date32, `val` LowCardinality(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_10` ( `key` Array(Date32), `val` Decimal(18, 16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_10` (`key` Array(Date32), `val` Decimal(18, 16)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 12 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_11` ( `key` Nullable(Date32), `val` LowCardinality(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_12` ( `key` Nullable(Date32), `val` LowCardinality(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_13` ( `key` Nullable(Date32), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 15 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_14` ( `key` Array(Nullable(Date32)), `val` Nullable(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_14` (`key` Array(Nullable(Date32)), `val` Nullable(Int64)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 16 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_15` ( `key` LowCardinality(Nullable(Date32)), `val` Array(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_15` (`key` LowCardinality(Nullable(Date32)), `val` Array(Int64)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 17 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_16` ( `key` FixedString(10), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_16` (`key` FixedString(10), `val` Int64) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS FixedString is only implemented for types String and FixedString: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3362: DB::(anonymous namespace)::FunctionCast::createFixedStringWrapper(std::shared_ptr const&, unsigned long) const @ 0x000000000710c5c5 5. /build/src/Functions/FunctionsConversion.cpp:5202: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb300 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 18 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_17` ( `key` LowCardinality(Nullable(Date32)), `val` Nullable(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 19 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_18` ( `key` LowCardinality(Nullable(Date32)), `val` Nullable(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 20 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_19` ( `key` LowCardinality(Nullable(Date32)), `val` Nullable(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_20` ( `key` Nullable(Date32), `val` Nullable(Decimal(18, 3)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 22 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_21` ( `key` Nullable(Date32), `val` Nullable(Decimal(38, 37)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 23 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_22` ( `key` Nullable(Date32), `val` Nullable(Decimal(38, 37)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_23` ( `key` Nullable(Date32), `val` Nullable(Decimal(38, 37)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_24` ( `key` Nullable(Date32), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 26 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_25` ( `key` Array(Date32), `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_25` (`key` Array(Date32), `val` UInt16) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 27 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_26` ( `key` DateTime, `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_27` ( `key` Decimal(76, 8), `val` Int64 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_28` ( `key` Decimal(76, 8), `val` Nullable(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_29` ( `key` Float64, `val` Nullable(Int64) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_30` ( `key` Float64, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 32 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_31` ( `key` Float64, `val` Nullable(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_32` ( `key` Nullable(Float64), `val` Nullable(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 34 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_33` ( `key` Nullable(Float64), `val` Nullable(UInt16) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_34` ( `key` Decimal(18, 9), `val` LowCardinality(Nullable(UInt16)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 36 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_35` ( `key` UInt8, `val` UInt16 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 37 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_36` ( `key` UInt8, `val` Int8 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_37` ( `key` Nullable(UInt8), `val` Int8 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_38` ( `key` Array(Nullable(UInt8)), `val` Int256 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_38` (`key` Array(Nullable(UInt8)), `val` Int256) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 40 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_39` ( `key` Nullable(UInt8), `val` Array(Int8) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_39` (`key` Nullable(UInt8), `val` Array(Int8)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column `0` to destination column val. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 41 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_40` ( `key` UInt8, `val` Int8 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_41` ( `key` UInt8, `val` Nullable(Int8) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_42` ( `key` Nullable(UInt8), `val` LowCardinality(Nullable(Int8)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_43` ( `key` UInt8, `val` LowCardinality(Nullable(Int8)) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_44` ( `key` Array(UInt8), `val` Int8 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_44` (`key` Array(UInt8), `val` Int8) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 46 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_45` ( `key` UInt8, `val` Nullable(Int8) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_46` ( `key` Int64, `val` Nullable(Int8) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 48 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_47` ( `key` Decimal(9, 1), `val` Int8 ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE `03657_gby_overflow__fuzz_48` ( `key` Array(Decimal(9, 1)), `val` Nullable(Int8) ) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000) Error on processing query 'CREATE TABLE `03657_gby_overflow__fuzz_48` (`key` Array(Decimal(9, 1)), `val` Nullable(Int8)) ENGINE = MergeTree ORDER BY tuple() AS SELECT number, 0 FROM numbers(100000)': Received from localhost:9000. DB::Exception: CAST AS Array can only be performed between same-dimensional Array, Map or String types: while converting source column number to destination column key. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Functions/FunctionsConversion.cpp:3560: DB::(anonymous namespace)::FunctionCast::createArrayWrapper(std::shared_ptr const&, DB::DataTypeArray const&) const @ 0x000000000710ca25 5. /build/src/Functions/FunctionsConversion.cpp:5204: DB::(anonymous namespace)::FunctionCast::prepareUnpackDictionaries(std::shared_ptr const&, std::shared_ptr const&) const @ 0x00000000070fb276 6. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714: DB::(anonymous namespace)::FunctionCast::prepare(std::vector> const&) const @ 0x00000000070f95ae 7. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::ActionsDAG::addFunctionImpl(std::shared_ptr const&, std::vector>, std::vector>, String, std::shared_ptr, bool) @ 0x0000000010fd72a0 8. /build/src/Interpreters/ActionsDAG.cpp:286: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000010fd7cc1 9. /build/src/Interpreters/ActionsDAG.cpp:1554: DB::ActionsDAG::makeConvertingActions(std::vector> const&, std::vector> const&, DB::ActionsDAG::MatchColumnsMode, bool, bool, std::unordered_map, std::equal_to, std::allocator>>*) @ 0x0000000010fe4d9f 10. /build/src/Interpreters/InterpreterInsertQuery.cpp:544: DB::InterpreterInsertQuery::buildInsertSelectPipeline(DB::ASTInsertQuery&, std::shared_ptr) @ 0x000000001160c90f 11. /build/src/Interpreters/InterpreterInsertQuery.cpp:0: DB::InterpreterInsertQuery::execute() @ 0x000000001160fbcc 12. /build/src/Interpreters/InterpreterInsertQuery.h:20: DB::InterpreterCreateQuery::fillTableIfNeeded(DB::ASTCreateQuery const&) @ 0x000000001157454a 13. /build/src/Interpreters/InterpreterCreateQuery.cpp:1547: DB::InterpreterCreateQuery::createTable(DB::ASTCreateQuery&) @ 0x000000001156c131 14. /build/src/Interpreters/InterpreterCreateQuery.cpp:2045: DB::InterpreterCreateQuery::execute() @ 0x0000000011575e12 15. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC LIMIT 2147483646 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC LIMIT 2147483646 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC LIMIT 2147483646 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 3 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_32`.key is not under aggregate function and not in GROUP BY keys. In query SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 4 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 6 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 8 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_47` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 14 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_18` WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = NULL, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 17 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT -9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT -9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 19 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 22 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_42` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_42` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_42`.key is not under aggregate function and not in GROUP BY keys. In query SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_42` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 23 out of 1000 EXPLAIN PIPELINE compact = true SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_36` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_36` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 24 out of 1000 SELECT key, any(toInt64(toUInt256(toLowCardinality(0))), val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(toInt64(toUInt256(toLowCardinality(0))), val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC, key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Aggregate function any requires single argument. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/AggregateFunctions/AggregateFunctionAnyRespectNulls.cpp:0: DB::(anonymous namespace)::createAggregateFunctionAnyRespectNulls(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000000f775a4e 5. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000104cd51c 6. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:124: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000104cc3d4 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:616: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062141 8. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 11. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 13. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 14. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 17. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 18. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 20. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 23. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 25. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 26. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 27. ? @ 0x00007f528afa4ac3 28. ? @ 0x00007f528b036850 Fuzzing step 25 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS FIRST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS FIRST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 30 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_18` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_18` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 32 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_22` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) DESC NULLS FIRST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) DESC NULLS FIRST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS LAST, key ASC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS FIRST, key ASC LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS FIRST, key ASC LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 42 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS FIRST, key ASC LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC NULLS FIRST, key ASC LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "run_passes" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 43 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT key, toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(toLowCardinality(toUInt128(0))))))), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH CUBE WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(toLowCardinality(0))))) ASC LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 1048576, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Current AST is too long, discarding it and using the original AST as a start Fuzzing step 45 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 46 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_29` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_8` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048577, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` PREWHERE toUInt128(materialize(0)) GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC LIMIT -2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 2 Error on processing query 'SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` PREWHERE toUInt128(materialize(0)) GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC LIMIT -2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 2': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 57 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_18` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_8` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = -9223372036854775808, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 59 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_33`.key is not under aggregate function and not in GROUP BY keys. In query SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 60 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT key, numbers_mt(100), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, numbers_mt(100), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT key, numbers_mt(100), any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 8. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 62 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_29` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT key, any(`03657_gby_overflow__fuzz_26`, val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(`03657_gby_overflow__fuzz_26`, val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_26' in scope SELECT key, any(`03657_gby_overflow__fuzz_26`, val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 10. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 12. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 13. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 15. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 16. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 17. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 19. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 22. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 23. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 24. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 25. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 26. ? @ 0x00007f528afa4ac3 27. ? @ 0x00007f528b036850 Fuzzing step 64 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 66 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 68 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 70 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 71 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 72 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 73 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_43` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_29` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT key, `03657_gby_overflow__fuzz_17`, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, `03657_gby_overflow__fuzz_17`, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_17' in scope SELECT key, `03657_gby_overflow__fuzz_17`, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 7. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 9. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 10. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 13. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 14. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 16. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 19. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 21. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 22. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 23. ? @ 0x00007f528afa4ac3 24. ? @ 0x00007f528b036850 Fuzzing step 77 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_29` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 78 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS FIRST, key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_21`.key is not under aggregate function and not in GROUP BY keys. In query SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 7, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 83 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 EXPLAIN PIPELINE header = true SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE header = true SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 88 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 89 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 90 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 91 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 94 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 95 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = NULL, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 97 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 EXPLAIN QUERY TREE dump_passes = true, passes = true SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, passes = true SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "dump_passes" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f001 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 99 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT any(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0))))), val) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT any(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0))))), val) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT any(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(toNullable(toUInt256(toLowCardinality(toNullable(0))), 0))))), val) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 24. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 27. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 28. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 29. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 30. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 31. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 Fuzzing step 101 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS FIRST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS FIRST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 100, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key DESC NULLS FIRST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key DESC NULLS FIRST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 0, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Got boring AST Fuzzing step 109 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT any(1025, val) FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Error on processing query 'SELECT any(1025, val) FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023': Received from localhost:9000. DB::Exception: Aggregate function any requires single argument. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/AggregateFunctions/SingleValueData.h:0: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_120AggregateFunctionAnyELb1ETpTnbJEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x000000000f742365 5. /build/src/AggregateFunctions/AggregateFunctionAny.cpp:0: DB::(anonymous namespace)::createAggregateFunctionAny(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000000f7400a9 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000104cd51c 7. /build/src/AggregateFunctions/AggregateFunctionFactory.cpp:113: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x00000000104cc0e0 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:616: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062141 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 12. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 14. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 15. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 16. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 18. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 19. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 20. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 21. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 22. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 24. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 26. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 27. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 28. ? @ 0x00007f528afa4ac3 29. ? @ 0x00007f528b036850 Fuzzing step 111 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Got boring AST Fuzzing step 114 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) ASC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Got boring AST Fuzzing step 115 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Got boring AST Fuzzing step 117 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) DESC, key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN PIPELINE header = true SELECT any(val) FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Error on processing query 'EXPLAIN PIPELINE header = true SELECT any(val) FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "header" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 120 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT -2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Error on processing query 'SELECT any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT -2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 122 out of 1000 SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` WHERE `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Error on processing query 'SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` WHERE `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_30' in scope SELECT any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` WHERE `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 123 out of 1000 SELECT 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT materialize(toNullable(toInt256(9223372036854775807))), any(val) FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT materialize(toInt256(9223372036854775807)), any(val) FROM `03657_gby_overflow__fuzz_37` WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Error on processing query 'SELECT materialize(toInt256(9223372036854775807)), any(val) FROM `03657_gby_overflow__fuzz_37` WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow__fuzz_37`.key is not under aggregate function and not in GROUP BY keys. In query SELECT materialize(toInt256(9223372036854775807)), any(val) FROM `03657_gby_overflow__fuzz_37` WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 126 out of 1000 SELECT toNullable(toInt256(9223372036854775807)), any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 65536, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1023 Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT toInt256(9223372036854775807), any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1023 Got boring AST Fuzzing step 129 out of 1000 SELECT 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT 9223372036854775807, any(val) FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = -9223372036854775807, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Fuzzing step 134 out of 1000 SELECT 9223372036854775807, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 2147483647, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048575, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 256, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT materialize(9223372036854775807) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 256, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT materialize(9223372036854775807) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 256, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 140 out of 1000 SELECT materialize(9223372036854775807) FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH ROLLUP ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT materialize(9223372036854775807) FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP ORDER BY key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC, key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC, key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS FIRST, key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS FIRST, key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST, `03657_gby_overflow__fuzz_8` ASC, key ASC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST, `03657_gby_overflow__fuzz_8` ASC, key ASC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_8' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST, `03657_gby_overflow__fuzz_8` ASC, key ASC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 147 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS FIRST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 2, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 152 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('9223372036854775807'): 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 153 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST, key DESC LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 155 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST, key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST, key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST, key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST, key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 159 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST, key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST, key DESC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 166 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 167 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 169 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 170 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 171 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 174 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 175 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 177 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('9223372036854775807'): 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 178 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 181 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP ORDER BY `03657_gby_overflow__fuzz_17` ASC, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP ORDER BY `03657_gby_overflow__fuzz_17` ASC, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_17' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH ROLLUP ORDER BY `03657_gby_overflow__fuzz_17` ASC, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 184 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 190 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 191 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 192 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 193 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Got boring AST Fuzzing step 194 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT toInt128(9223372036854775807) FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 255, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 201 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 257, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 257, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 257, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 257, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 257, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toUInt256(0)))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toUInt256(0)))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(256, toInt64(toNullable(materialize(toUInt256(0)))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(256, toInt64(toNullable(materialize(toUInt256(0)))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Illegal column toInt64(toNullable(materialize(toUInt256(0)))) of time zone argument of function, must be a constant string: In scope SELECT toDateTime(fromUnixTimestamp64Micro(256, toInt64(toNullable(materialize(toUInt256(0)))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) ASC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 209 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toUInt256(0)))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP WITH CUBE ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toUInt256(0)))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP WITH CUBE ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Syntax error: failed at position 187 ('CUBE'): CUBE ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows. Expected TOTALS. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 210 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toUInt256(0)))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_42`, toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_42`, toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_42' in scope SELECT toDateTime(fromUnixTimestamp64Micro(`03657_gby_overflow__fuzz_42`, toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 13. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 213 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_18` WHERE 9223372036854775807 GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_18` WHERE 9223372036854775807 GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024': Received from localhost:9000. DB::Exception: Illegal type UInt64 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 214 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0))))), toLowCardinality(9223372036854775807) FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS FIRST LIMIT 255 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1024 Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1 Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP ORDER BY toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1 Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP ORDER BY toLowCardinality(toUInt128(0)) ASC, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1 Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH ROLLUP ORDER BY toLowCardinality(toUInt128(0)) ASC NULLS FIRST, toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0))))) DESC NULLS LAST LIMIT 9223372036854775806 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 2, max_block_size = 100, group_by_two_level_threshold = 1048576, group_by_two_level_threshold_bytes = 1 Current AST is too long, discarding it and using the original AST as a start Fuzzing step 224 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow` WITH TOTALS ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow` WITH TOTALS ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Column default.`03657_gby_overflow`.key is not under aggregate function and not in GROUP BY keys. In query SELECT key, any(val) FROM `03657_gby_overflow` WITH TOTALS ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x000000000701356b 4. /build/src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109755e 5. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 6. /build/src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001109723e 7. /build/src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x00000000110965dd 8. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 9. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 10. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 11. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 12. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 13. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 14. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 15. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 225 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 227 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key ORDER BY key ASC LIMIT '3' SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key ORDER BY key ASC LIMIT '3' SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual '3'. In scope SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key ORDER BY key ASC LIMIT '3' SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x00000000073d752b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056d6b 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 228 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 229 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 230 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 231 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 235 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` WHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key FROM `03657_gby_overflow__fuzz_21` WHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal type Nullable(DateTime64) of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 236 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key ASC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 237 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 240 out of 1000 EXPLAIN SYNTAX SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN TABLE OVERRIDE SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('key'): key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, ma. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 242 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 EXPLAIN ESTIMATE SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_27` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'anyany', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 245 out of 1000 EXPLAIN PIPELINE SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 248 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 249 out of 1000 EXPLAIN SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('key'): key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, ma. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 251 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 253 out of 1000 EXPLAIN AST SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 254 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 256 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'anyany', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 257 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 260 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_22` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_36` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 266 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key DESC LIMIT -9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key DESC LIMIT -9223372036854775807 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 269 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_42` WHERE toInt64(toUInt128(0)) GROUP BY key ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_42` WHERE toInt64(toUInt128(0)) GROUP BY key ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal type Int64 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 271 out of 1000 SELECT toInt64(toLowCardinality(0)), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT toInt64(toLowCardinality(0)), key FROM `03657_gby_overflow__fuzz_33` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 275 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT toInt64(materialize(0)), key FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT -2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT -2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 281 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_27` PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = -9223372036854775807, group_by_two_level_threshold = 10, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 282 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_27` PREWHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key FROM `03657_gby_overflow__fuzz_27` PREWHERE fromUnixTimestamp64Micro(toInt64(toNullable(0))) GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal type Nullable(DateTime64) of column for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a31bd 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 286 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 288 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 290 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 293 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT toInt128(toInt256(9223372036854775807)), key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT toInt128(toInt256(9223372036854775807)), key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 SELECT toInt128(toInt256(9223372036854775807)), key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 SELECT toInt128(toInt256(9223372036854775807)), key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT toInt256(9223372036854775807), key FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT -2147483649 SETTINGS group_by_overflow_mode = 'anyanyanyany', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 299 out of 1000 SELECT toInt128(toInt256(materialize(toNullable(9223372036854775807)))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = -1, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 300 out of 1000 SELECT toInt128(toInt256(toNullable(9223372036854775807))), key FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 SELECT toInt128(toInt256(toNullable(9223372036854775807))), key FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 302 out of 1000 SELECT toInt128(toInt256(9223372036854775807)), key FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT toInt128(toInt256(9223372036854775807)), key FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 SELECT toInt128(9223372036854775807), key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT toInt128(9223372036854775807), key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT toInt128(9223372036854775807), key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 307 out of 1000 SELECT 9223372036854775807, key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT 9223372036854775807, key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 309 out of 1000 SELECT 9223372036854775807, key FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_42` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_42` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY `03657_gby_overflow__fuzz_36` ASC, key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY `03657_gby_overflow__fuzz_36` ASC, key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_36' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY `03657_gby_overflow__fuzz_36` ASC, key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 320 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 323 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = -9223372036854775807, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 324 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 325 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 327 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 328 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS FIRST LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 334 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 336 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT toInt256(9223372036854775807) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1023 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_47` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 344 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN ESTIMATE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 346 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 348 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 350 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 354 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` PREWHERE `03657_gby_overflow__fuzz_13` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` PREWHERE `03657_gby_overflow__fuzz_13` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_13' in scope SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` PREWHERE `03657_gby_overflow__fuzz_13` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 9223372036854775807, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 356 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 357 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 358 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 360 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN PIPELINE SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN AST SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN SYNTAX SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 369 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT -2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT -2147483648 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 370 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_42` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 1048577, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_42` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = -2147483647 Fuzzing step 374 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 377 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.128549422 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 379 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 SELECT 9223372036854775807 FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toNullable(0))))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toNullable(0))))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(0)))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 2, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(toLowCardinality(0))))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 2, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.04770329 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 394 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), 9223372036854775807 FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.075179522 seconds, maximum: 10. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000010c0ffab 4. /build/src/QueryPipeline/ExecutionSpeedLimits.cpp:0: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000010c0f6ba 5. /build/contrib/llvm-project/libcxx/include/atomic:958: DB::PipelineExecutor::finalizeExecution() @ 0x0000000012d79e10 6. /build/src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x0000000012d790a4 7. /build/src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:0: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x0000000012d8772a 8. /build/base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000c707d2e 9. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000c70d192 10. ? @ 0x00007f528afa4ac3 11. ? @ 0x00007f528b036850 Fuzzing step 400 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 402 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN QUERY TREE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 404 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 EXPLAIN PIPELINE SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 EXPLAIN AST SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 408 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 255 Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 255 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT -2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 255': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 410 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 255 Got boring AST Fuzzing step 411 out of 1000 SELECT toLowCardinality(toLowCardinality(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), materialize(toInt128(9223372036854775807)) FROM `03657_gby_overflow__fuzz_27` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toNullable(0)))))) ASC, key ASC NULLS LAST LIMIT 1048575 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1048576, max_block_size = 1048577, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 255 Current AST is too long, discarding it and using the original AST as a start Fuzzing step 412 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_33` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_37` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT key, any(val) RESPECT NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key FROM `03657_gby_overflow__fuzz_21` WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: WITH TOTALS, ROLLUP, CUBE or GROUPING SETS are not supported without aggregation. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000011096ea1 5. /build/contrib/llvm-project/libcxx/include/vector:1454: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110461ce 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 417 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 418 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH CUBE ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT -2147483649 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT -2147483649 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 426 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH CUBE ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN PIPELINE compact = true SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT key FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "compact" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f335 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 429 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH CUBE ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 430 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = -9223372036854775808, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 433 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 434 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_22` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toLowCardinality(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 65536, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 442 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), toFixedString('UTC', 3)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) ASC, key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), toFixedString('UTC', 3)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) ASC, key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: FixedString(3): In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), toFixedString('UTC', 3)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY key WITH CUBE WITH TOTALS ORDER BY fromUnixTimestamp64Micro(toInt64(toLowCardinality(0))) ASC, key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 443 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 444 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toInt256(`03657_gby_overflow__fuzz_14`, 9223372036854775807)), materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toInt256(`03657_gby_overflow__fuzz_14`, 9223372036854775807)), materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_14' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toInt256(`03657_gby_overflow__fuzz_14`, 9223372036854775807)), materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_43` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 13. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 16. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 19. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 20. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 21. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 22. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 23. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 24. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 25. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 26. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 27. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 28. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 29. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 31. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd Fuzzing step 445 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 446 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), toLowCardinality(toFixedString('UTC', 3))), key FROM `03657_gby_overflow__fuzz_29` PREWHERE toLowCardinality(materialize(toLowCardinality(0))) WHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), toLowCardinality(toFixedString('UTC', 3))), key FROM `03657_gby_overflow__fuzz_29` PREWHERE toLowCardinality(materialize(toLowCardinality(0))) WHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: FixedString(3): In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), toLowCardinality(toFixedString('UTC', 3))), key FROM `03657_gby_overflow__fuzz_29` PREWHERE toLowCardinality(materialize(toLowCardinality(0))) WHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(materialize(0))))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 447 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_18` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 448 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_12` PREWHERE toInt64(materialize(toUInt128(materialize(0)))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toNullable(0)))), 'UTC'), key FROM `03657_gby_overflow__fuzz_12` PREWHERE toInt64(materialize(toUInt128(materialize(0)))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal type Int64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000121a3133 5. /build/contrib/llvm-project/libcxx/include/vector:547: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000124f7eb3 6. /build/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) @ 0x0000000012867a39 7. /build/contrib/llvm-project/libcxx/include/optional:344: 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&) @ 0x00000000131a937f 8. /build/src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x00000000131a8f3d 9. /build/contrib/llvm-project/libcxx/include/vector:438: DB::SourceStepWithFilter::applyFilters() @ 0x000000001321a19a 10. /build/src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:50: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001321a065 11. /build/src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:122: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x0000000013218973 12. /build/src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001318ee88 13. /build/contrib/llvm-project/libcxx/include/__memory/compressed_pair.h:36: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001318e66e 14. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x000000001165be4d 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x000000001165bbfe 16. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 17. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 18. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 20. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 22. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 23. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 24. ? @ 0x00007f528afa4ac3 25. ? @ 0x00007f528b036850 Fuzzing step 450 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(9223372036854775806), materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(9223372036854775806), materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(9223372036854775806), materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 451 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(0))), 'UTC'), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), key FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), key FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(0)), 'UTC'), key FROM `03657_gby_overflow__fuzz_31` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT NULL SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x00000000073d752b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056d6b 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 455 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_29` WHERE toInt64(toNullable(toNullable(0))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_29` WHERE toInt64(toNullable(toNullable(0))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': 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 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toLowCardinality(toUInt128(0)), fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_29` WHERE toInt64(toNullable(toNullable(0))) GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 458 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toInt128(9223372036854775807), materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toInt128(9223372036854775807), materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toInt128(9223372036854775807), materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_29` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 460 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 461 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 464 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT -9223372036854775808 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 465 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_36`, 0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_36`, 0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression or function identifier '03657_gby_overflow__fuzz_36' in scope SELECT fromUnixTimestamp64Micro(toInt64(`03657_gby_overflow__fuzz_36`, 0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 6. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 7. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 10. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 11. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 13. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 14. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 15. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 16. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 17. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 19. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 20. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 21. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 22. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 25. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 26. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 27. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 28. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 29. ? @ 0x00007f528afa4ac3 30. ? @ 0x00007f528b036850 Fuzzing step 467 out of 1000 EXPLAIN PIPELINE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 EXPLAIN SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 471 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 472 out of 1000 EXPLAIN ESTIMATE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1025 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 473 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 475 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': 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 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toDateTime(fromUnixTimestamp64Micro(toInt64(0))), fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000000724dfbb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 476 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65535, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_36` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_33` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 3 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_42` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(toUInt256(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_27` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('fromUnixTimestamp64Micro'): fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_4` GROUP BY key WITH TOTALS ORDER BY . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 488 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key ASC LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 489 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65536 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 493 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_8` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_32` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_35` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 498 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_12` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 499 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_21` GROUP BY key WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))), key FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(toNullable(0)))), key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 2, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 512 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toNullable(0))), key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = -2147483648, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 518 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 519 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT fromUnixTimestamp64Micro(toUInt128(materialize(0)), toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toUInt128(materialize(0)), toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toUInt128(materialize(0)), toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 521 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_27` WHERE numbers_mt(toNullable(2)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_27` WHERE numbers_mt(toNullable(2)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Function with name 'numbers_mt' does not exist. In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_27` WHERE numbers_mt(toNullable(2)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 65535 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x000000000cb8654b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011065d49 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110452da 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 522 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 524 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 526 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), key FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048576 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 530 out of 1000 SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY `03657_gby_overflow__fuzz_4` ASC NULLS FIRST, key DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY `03657_gby_overflow__fuzz_4` ASC NULLS FIRST, key DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_4' in scope SELECT toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY `03657_gby_overflow__fuzz_4` ASC NULLS FIRST, key DESC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65536, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001106e996 6. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110457c6 7. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 8. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 9. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 11. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 12. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 13. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 14. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 15. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 18. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 19. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 20. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 21. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 22. ? @ 0x00007f528afa4ac3 23. ? @ 0x00007f528b036850 Fuzzing step 531 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_4` WHERE toInt64(materialize(toUInt256(0))) GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_4` WHERE toInt64(materialize(toUInt256(0))) GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal type Int64 of column toInt64(materialize(_CAST('0'_UInt256, 'UInt256'_String))) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x000000000789474b 4. /build/src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x0000000012fca437 5. /build/src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001316afe3 6. /build/contrib/llvm-project/libcxx/include/string:1499: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&, String&, bool&) @ 0x0000000011639b78 7. /build/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>>&) @ 0x0000000011668269 8. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661f15 9. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 10. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 11. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 12. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 15. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 16. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 17. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 18. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 19. ? @ 0x00007f528afa4ac3 20. ? @ 0x00007f528b036850 Fuzzing step 534 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), 0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), 0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(materialize(toUInt128(materialize(0)))))), 0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_7` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 535 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = NULL, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 536 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toLowCardinality(0)))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_4` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 100 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT -1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS LAST LIMIT -1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x0000000011056dee 5. /build/contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x0000000011045d02 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 540 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_35` WHERE toInt64(toUInt256(toLowCardinality(0))) GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_35` WHERE toInt64(toUInt256(toLowCardinality(0))) GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal type Int64 of column for constant filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007011dab 4. /build/src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000121a2d08 5. /build/src/Planner/PlannerExpressionAnalysis.cpp:54: DB::(anonymous namespace)::analyzeFilter(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::ActionsChain&) @ 0x00000000116a60ef 6. /build/src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x000000001169e769 7. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000011661d33 8. /build/src/Planner/Planner.cpp:0: DB::Planner::buildQueryPlanIfNeeded() @ 0x000000001165dd7e 9. /build/src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x000000001165bf6d 10. /build/src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001192444d 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 542 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0))) FROM `03657_gby_overflow__fuzz_47` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0))) FROM `03657_gby_overflow__fuzz_47` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toInt64'. Expected 1 argument, got 2 arguments: In scope SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(fromUnixTimestamp64Micro(toInt64(materialize(toUInt256(0)))), 0))) FROM `03657_gby_overflow__fuzz_47` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000703476b 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007033142 5. /build/src/Functions/FunctionsConversion.cpp:0: std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl, DB::(anonymous namespace)::NameToInt64, 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&) @ 0x00000000071b09b8 6. /build/contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x00000000071aaedb 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 17. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 19. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 20. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 21. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 22. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 23. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 24. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 25. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 26. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 27. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 28. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 29. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 30. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 31. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 Fuzzing step 543 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 544 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC NULLS LAST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 548 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toUInt128(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toUInt128(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': 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 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(toUInt128(toNullable(0)), fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: 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&&) @ 0x00000000070350f9 4. /build/src/Functions/FunctionHelpers.cpp:0: DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x000000000703342a 5. /build/src/Functions/FunctionsConversion.cpp:2081: 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&) @ 0x00000000072684c7 6. /build/src/Functions/FunctionsConversion.cpp:2009: DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x000000000724e120 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 551 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(materialize(toLowCardinality(0)), toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(materialize(toLowCardinality(0)), toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(materialize(toLowCardinality(0)), toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:491: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6d0db 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 14. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 17. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 18. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 19. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 20. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 22. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 23. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 24. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 25. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 26. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 28. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 29. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 30. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 31. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 Fuzzing step 553 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_37` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_18` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 558 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_22` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = NULL, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 559 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 561 out of 1000 SELECT fromUnixTimestamp64Micro(toNullable(toInt256(9223372036854775806)), toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toNullable(toInt256(9223372036854775806)), toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Illegal column toInt64(0) of time zone argument of function, must be a constant string: In scope SELECT fromUnixTimestamp64Micro(toNullable(toInt256(9223372036854775806)), toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) ORDER BY key ASC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000702300b 4. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:26: DB::extractTimeZoneNameFromColumn(DB::IColumn const*, String const&) @ 0x0000000008a9768b 5. /build/src/Functions/extractTimeZoneFromFunctionArguments.cpp:0: DB::extractTimeZoneNameFromFunctionArguments(std::vector> const&, unsigned long, unsigned long, bool) @ 0x0000000008a97768 6. /build/contrib/llvm-project/libcxx/include/string:1499: DB::FunctionFromUnixTimestamp64::getReturnTypeImpl(std::vector> const&) const @ 0x000000000704c597 7. /build/src/Functions/IFunction.cpp:486: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cf5b 8. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 9. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 11. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 12. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 14. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 15. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 16. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 17. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 18. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 19. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 20. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 21. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 22. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 23. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 24. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 25. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 26. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 27. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 28. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 29. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 30. ? @ 0x00007f528afa4ac3 31. ? @ 0x00007f528b036850 Fuzzing step 562 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 566 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt128(0)))) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) ORDER BY key DESC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toUInt128(0)))) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) WITH ROLLUP ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT fromUnixTimestamp64Micro(toInt64(materialize(0))), toDateTime(fromUnixTimestamp64Micro(toInt64(toDateTime(fromUnixTimestamp64Micro(toInt64(toUInt256(0)))), toUInt128(0)))) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) WITH ROLLUP ORDER BY key ASC LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 568 out of 1000 SELECT fromUnixTimestamp64Micro(toInt64(0)), toDateTime(fromUnixTimestamp64Micro(toInt64(0))) FROM `03657_gby_overflow__fuzz_36` WHERE toLowCardinality(materialize(toNullable(0))) GROUP BY GROUPING SETS ((key)) ORDER BY materialize(toNullable(toNullable(0))) ASC NULLS FIRST, key DESC NULLS FIRST LIMIT 1048577 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 65537, max_threads = 1, max_block_size = 1024, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Current AST is too long, discarding it and using the original AST as a start Fuzzing step 569 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 571 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 572 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` PREWHERE `03657_gby_overflow__fuzz_19` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` PREWHERE `03657_gby_overflow__fuzz_19` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown expression identifier '03657_gby_overflow__fuzz_19' in scope SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` PREWHERE `03657_gby_overflow__fuzz_19` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x0000000011078f39 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104d671 5. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 6. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 7. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 8. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 10. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 11. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 12. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 13. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 14. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 16. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 17. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 18. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 19. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 20. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 21. ? @ 0x00007f528afa4ac3 22. ? @ 0x00007f528b036850 Fuzzing step 574 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY key ORDER BY key ASC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_47` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_47` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 577 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY key ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 579 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_28` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 581 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_37` GROUP BY key WITH ROLLUP WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 585 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 586 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 587 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 588 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 589 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 590 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 2147483647 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 591 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 592 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 593 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 594 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 595 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 596 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 597 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 598 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 599 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 600 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 601 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 602 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 604 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 605 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 606 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 607 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 608 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 609 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 610 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 611 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 612 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 613 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 614 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 615 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 616 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 617 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_33` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 618 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 619 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_32` PREWHERE toDateTime(fromUnixTimestamp64Micro(toInt64(toNullable(0)))) GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 620 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 622 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 623 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 624 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 626 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 627 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 629 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 630 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 631 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 632 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 633 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 634 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 635 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 636 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_42` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 637 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 638 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 640 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 641 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 642 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 643 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 644 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 645 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 646 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 647 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 648 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 649 out of 1000 EXPLAIN TABLE OVERRIDE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 650 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 651 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 652 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 655 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 656 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 657 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 659 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 660 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 663 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 664 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 665 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 666 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 667 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 668 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 671 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 672 out of 1000 SELECT key, any(toLowCardinality(materialize(toNullable(0))), val) FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(toLowCardinality(materialize(toNullable(0))), val) FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 0 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 673 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 674 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 675 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 676 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 677 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 678 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 679 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 680 out of 1000 EXPLAIN TABLE OVERRIDE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 681 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 682 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 684 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 685 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 686 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 687 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 689 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 690 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 691 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 692 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 693 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 694 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 695 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 696 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 697 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 698 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 699 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 700 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 701 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 702 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 703 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 704 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 706 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 707 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 708 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 709 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 710 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 712 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 713 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 714 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 715 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 717 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 718 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 719 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 720 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 721 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 722 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 723 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 726 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 728 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 729 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 730 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 731 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 732 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 733 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 734 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 735 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 736 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 738 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 739 out of 1000 EXPLAIN TABLE OVERRIDE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('key'): key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::createDeprecated(String const&, int, bool) @ 0x0000000007035a8d 3. /build/src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x00000000135e1f8c 4. /build/src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x00000000135e201e 5. /build/contrib/llvm-project/libcxx/include/__utility/swap.h:37: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011920bf0 6. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 7. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 9. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 10. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 11. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 12. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 13. ? @ 0x00007f528afa4ac3 14. ? @ 0x00007f528b036850 Fuzzing step 740 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 742 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 743 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 744 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 745 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 746 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 747 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 748 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 749 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 750 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 751 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 752 out of 1000 EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN ESTIMATE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c592 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 753 out of 1000 EXPLAIN AST SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 754 out of 1000 EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158dfc3 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 755 out of 1000 EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN QUERY TREE SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000011598e74 8. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158e322 9. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 10. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 11. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 12. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 13. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 14. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 15. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 16. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 17. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 18. ? @ 0x00007f528afa4ac3 19. ? @ 0x00007f528b036850 Fuzzing step 756 out of 1000 EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c199 11. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 12. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 757 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 1000000000, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 760 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 762 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 764 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_31` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 10 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 765 out of 1000 EXPLAIN SYNTAX SELECT key, any(val) FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT key, any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT key, fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toInt64(materialize(toUInt128(materialize(0)))), toNullable(0)))))), any(val) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT key, fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toInt64(materialize(toUInt128(materialize(0)))), toNullable(0)))))), any(val) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT key, fromUnixTimestamp64Micro(toInt64(toNullable(materialize(toLowCardinality(toInt64(materialize(toUInt128(materialize(0)))), toNullable(0)))))), any(val) FROM `03657_gby_overflow__fuzz_36` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:447: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cc5b 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 17. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 18. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 19. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 20. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 21. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 22. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 23. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011071089 24. /build/contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110450be 25. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 26. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 27. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 28. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 29. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 30. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 31. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 Fuzzing step 768 out of 1000 EXPLAIN actions = true, json = true SELECT key, any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN actions = true, json = true SELECT key, any(val) FROM `03657_gby_overflow__fuzz_43` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Invalid type Bool for setting "actions" only integer settings are supported. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&) @ 0x000000001061378b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000011592892 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158c0d1 6. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 7. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 8. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 10. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 11. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 13. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 14. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 15. ? @ 0x00007f528afa4ac3 16. ? @ 0x00007f528b036850 Fuzzing step 769 out of 1000 SELECT toInt64(toLowCardinality(0)), key, any(val) FROM `03657_gby_overflow__fuzz_29` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT toInt64(toLowCardinality(0)), key, any(val) FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT toInt64(toLowCardinality(0)), key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT toInt64(toLowCardinality(0)), key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 2147483646, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 SELECT toInt64(toLowCardinality(0)), key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT toInt64(toLowCardinality(0)), key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT toInt64(0), key, any(val) IGNORE NULLS FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 1024 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_31` PREWHERE toLowCardinality(toNullable(0)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_31` PREWHERE toLowCardinality(toNullable(0)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 778 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_35` PREWHERE toLowCardinality(toNullable(0)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_35` PREWHERE toLowCardinality(toNullable(0)) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = -9223372036854775808, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 780 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_12` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_47` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_28` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_43` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_27` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'anyany', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Fuzzing step 785 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_4` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_4` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 7 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_4` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_22` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_22` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Unknown setting "graph=1" for EXPLAIN PIPELINE query. Supported settings: compact, graph, header. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/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&&) @ 0x000000001159772b 4. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x000000001158f901 5. /build/src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x000000001158bc07 6. /build/src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000011924a36 7. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 8. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 9. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 10. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 11. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 12. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 13. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 14. ? @ 0x00007f528afa4ac3 15. ? @ 0x00007f528b036850 Fuzzing step 789 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_21` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_36` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 100, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_28` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_47` PREWHERE toLowCardinality(0) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Got boring AST Fuzzing step 795 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) WITH ROLLUP WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 796 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_47` PREWHERE fromUnixTimestamp64Micro(toInt64(toNullable(toInt64(materialize(0)), toLowCardinality(toLowCardinality(0))))) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_47` PREWHERE fromUnixTimestamp64Micro(toInt64(toNullable(toInt64(materialize(0)), toLowCardinality(toLowCardinality(0))))) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_47` PREWHERE fromUnixTimestamp64Micro(toInt64(toNullable(toInt64(materialize(0)), toLowCardinality(toLowCardinality(0))))) GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x0000000007b6e76b 4. /build/src/Functions/IFunction.cpp:0: DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000007b6ca2d 5. /build/contrib/llvm-project/libcxx/include/vector:553: DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000007b6cdd5 6. /build/src/Functions/IFunction.cpp:437: DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000007b6cca0 7. /build/src/Functions/IFunction.cpp:452: DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x0000000007b6d1b4 8. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000011062ecb 9. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 10. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 11. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 12. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 13. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x000000001104ac20 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001105f384 15. /build/contrib/llvm-project/libcxx/include/vector:553: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x000000001104badc 16. /build/contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110451ad 17. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 18. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 19. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 20. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 21. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 22. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 23. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 24. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 25. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 26. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 27. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 28. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 29. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 30. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 31. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 Fuzzing step 798 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000 Error on processing query 'SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_8` GROUP BY GROUPING SETS ((key)) WITH CUBE WITH TOTALS ORDER BY key DESC NULLS LAST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 65535, group_by_two_level_threshold_bytes = 1000000000': Received from localhost:9000. DB::Exception: GROUPING SETS are not supported together with ROLLUP and CUBE. Stack trace: 0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001649ce72 1. /build/src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000c653179 2. /build/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000701216c 3. /build/contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000701502b 4. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000110473cb 5. /build/src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000011044419 6. /build/src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x0000000011043cee 7. /build/contrib/llvm-project/libcxx/include/vector:547: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000011597f8a 8. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x000000001165b576 9. /build/src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000011659a69 10. /build/contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr const&, DB::SelectQueryOptions const&>(std::shared_ptr&, std::shared_ptr const&, DB::SelectQueryOptions const&) @ 0x000000001165c364 11. /build/src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x00000000116061a4 12. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000119242a9 13. /build/src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x00000000119200bd 14. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x0000000012cceabb 15. /build/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::TCPHandler::run() @ 0x0000000012ce5279 16. /build/base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x0000000016542447 17. /build/contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001654291e 18. /build/base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x00000000164ef132 19. /build/base/poco/Foundation/include/Poco/AutoPtr.h:77: Poco::ThreadImpl::runnableEntry(void*) @ 0x00000000164ece43 20. ? @ 0x00007f528afa4ac3 21. ? @ 0x00007f528b036850 Fuzzing step 800 out of 1000 SELECT toInt64(0), key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC NULLS FIRST LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key DESC LIMIT 257 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_35` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1000000000 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_28` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1048577 Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_32` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1048577 Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_30` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1048577 Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_21` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1048577 Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT key FROM `03657_gby_overflow__fuzz_12` GROUP BY GROUPING SETS ((key)) WITH TOTALS ORDER BY key ASC NULLS FIRST LIMIT 1 SETTINGS group_by_overflow_mode = 'any', max_rows_to_group_by = 2147483646, max_threads = 1048575, max_block_size = 100, group_by_two_level_threshold = 7, group_by_two_level_threshold_bytes = 1048577