https://s3.amazonaws.com/clickhouse-test-reports/42805/f53df7870c50dab252969a7bf37e3f776686888d/fuzzer_astfuzzerasan//report.html

```
2022.10.30 20:52:58.861494 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Debug> executeQuery: (from [::ffff:127.0.0.1]:34870) SELECT count(NULL) FROM (SELECT -9223372036854775808, initialQueryID() FROM remote('127.0.0.{1..3}', currentDatabase(), 'tmp') WHERE 3 WITH TOTALS) WHERE 76 (stage: Complete)
2022.10.30 20:52:58.862279 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> ContextAccess (default): Access granted: CREATE TEMPORARY TABLE, REMOTE ON *.*
2022.10.30 20:52:58.862913 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 1)
2022.10.30 20:52:58.863994 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 2)
2022.10.30 20:52:58.865238 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 3)
2022.10.30 20:52:58.865932 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 4)
2022.10.30 20:52:58.866985 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 5)
2022.10.30 20:52:58.868122 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 6)
2022.10.30 20:52:58.869232 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: Running 'analyze' second time (current analyze depth: 7)
2022.10.30 20:52:58.869634 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> ContextAccess (default): Access granted: SELECT(str) ON default.tmp
2022.10.30 20:52:58.869769 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: FetchColumns -> WithMergeableState
2022.10.30 20:52:58.870053 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: WithMergeableState -> Complete
2022.10.30 20:52:58.870167 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> InterpreterSelectQuery: FetchColumns -> Complete
2022.10.30 20:52:58.873118 [ 412 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> Connection (127.0.0.2:9000): Connecting. Database: (not specified). User: default
2022.10.30 20:52:58.873116 [ 414 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Fatal> : Logical error: 'Chunk info was not set for chunk in GroupingAggregatedTransform.'.
2022.10.30 20:52:58.873146 [ 402 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> Connection (127.0.0.3:9000): Connecting. Database: (not specified). User: default
2022.10.30 20:52:58.874123 [ 402 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> Connection (127.0.0.3:9000): Connected to ClickHouse server version 22.11.1.
2022.10.30 20:52:58.874146 [ 412 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> Connection (127.0.0.2:9000): Connected to ClickHouse server version 22.11.1.
2022.10.30 20:52:58.874965 [ 402 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Debug> Connection (127.0.0.3:9000): Sent data for 2 scalars, total 2 rows in 0.000272524 sec., 7320 rows/sec., 68.00 B (242.91 KiB/sec.), compressed 0.4594594594594595 times to 148.00 B (528.57 KiB/sec.)
2022.10.30 20:52:58.874985 [ 412 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Debug> Connection (127.0.0.2:9000): Sent data for 2 scalars, total 2 rows in 0.000274685 sec., 7259 rows/sec., 68.00 B (240.96 KiB/sec.), compressed 0.4594594594594595 times to 148.00 B (524.24 KiB/sec.)
2022.10.30 20:52:58.875506 [ 418 ] {74dd2192-f998-4e4a-879c-47612461f5b1} <Debug> executeQuery: (from [::ffff:127.0.0.1]:56626, initial_query_id: 27daf74f-bfcd-480c-9107-9ef9fcd60c78) SELECT -9223372036854775808 FROM `default`.`tmp` HAVING 76 (stage: WithMergeableState)
2022.10.30 20:52:58.875639 [ 158 ] {7787b707-a75b-44f2-a9a4-269874baf881} <Debug> executeQuery: (from [::ffff:127.0.0.1]:57450, initial_query_id: 27daf74f-bfcd-480c-9107-9ef9fcd60c78) SELECT -9223372036854775808 FROM `default`.`tmp` HAVING 76 (stage: WithMergeableState)
2022.10.30 20:53:34.639305 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Information> TCPHandler: Query was cancelled.
2022.10.30 20:53:34.642092 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> StorageDistributed (remote): (127.0.0.2:9000) Cancelling query
2022.10.30 20:53:34.645469 [ 157 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Trace> StorageDistributed (remote): (127.0.0.3:9000) Cancelling query
2022.10.30 20:53:34.646439 [ 421 ] {} <Fatal> BaseDaemon: (version 22.11.1.1, build id: 0C342C6EC87A8290F54FC1CF1C6CB4AFFE85B285) (from thread 414) (query_id: 27daf74f-bfcd-480c-9107-9ef9fcd60c78) (query: SELECT count(NULL) FROM (SELECT -9223372036854775808, initialQueryID() FROM remote('127.0.0.{1..3}', currentDatabase(), 'tmp') WHERE 3 WITH TOTALS) WHERE 76) Received signal Aborted (6)


2022.10.30 20:52:58.873116 [ 414 ] {27daf74f-bfcd-480c-9107-9ef9fcd60c78} <Fatal> : Logical error: 'Chunk info was not set for chunk in GroupingAggregatedTransform.'.
2022.10.30 20:53:34.646279 [ 421 ] {} <Fatal> BaseDaemon: ########################################
2022.10.30 20:53:34.646439 [ 421 ] {} <Fatal> BaseDaemon: (version 22.11.1.1, build id: 0C342C6EC87A8290F54FC1CF1C6CB4AFFE85B285) (from thread 414) (query_id: 27daf74f-bfcd-480c-9107-9ef9fcd60c78) (query: SELECT count(NULL) FROM (SELECT -9223372036854775808, initialQueryID() FROM remote('127.0.0.{1..3}', currentDatabase(), 'tmp') WHERE 3 WITH TOTALS) WHERE 76) Received signal Aborted (6)
2022.10.30 20:53:34.646557 [ 421 ] {} <Fatal> BaseDaemon: 
2022.10.30 20:53:34.646712 [ 421 ] {} <Fatal> BaseDaemon: Stack trace: 0x7f7d3664f00b 0x7f7d3662e859 0x1f3fbcdb 0x1f3fc21b 0x34305ec0 0x34303b36 0x34309053 0x33cdcd03 0x33cccea6 0x33cd09ec 0x1f62a901 0x1f634e4d 0x7f7d36806609 0x7f7d3672b133
2022.10.30 20:53:34.646889 [ 421 ] {} <Fatal> BaseDaemon: 3. gsignal @ 0x7f7d3664f00b in ?
2022.10.30 20:53:34.647063 [ 421 ] {} <Fatal> BaseDaemon: 4. abort @ 0x7f7d3662e859 in ?
2022.10.30 20:53:34.833521 [ 421 ] {} <Fatal> BaseDaemon: 5. ./build_docker/../src/Common/Exception.cpp:40: DB::abortOnFailedAssertion(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) @ 0x1f3fbcdb in /workspace/clickhouse
2022.10.30 20:53:34.974745 [ 421 ] {} <Fatal> BaseDaemon: 6.1. inlined from ./build_docker/../src/Common/Exception.cpp:63: DB::handle_error_code(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, int, bool, std::__1::vector<void*, std::__1::allocator<void*>> const&)
2022.10.30 20:53:34.974856 [ 421 ] {} <Fatal> BaseDaemon: 6. ./build_docker/../src/Common/Exception.cpp:70: DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, int, bool) @ 0x1f3fc21b in /workspace/clickhouse
2022.10.30 20:53:35.086504 [ 421 ] {} <Fatal> BaseDaemon: 7. ./build_docker/../src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp:255: DB::GroupingAggregatedTransform::addChunk(DB::Chunk, unsigned long) @ 0x34305ec0 in /workspace/clickhouse
2022.10.30 20:53:35.192562 [ 421 ] {} <Fatal> BaseDaemon: 8. ./build_docker/../src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp:0: DB::GroupingAggregatedTransform::readFromAllInputs() @ 0x34303b36 in /workspace/clickhouse
2022.10.30 20:53:35.311013 [ 421 ] {} <Fatal> BaseDaemon: 9. ./build_docker/../src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp:140: DB::GroupingAggregatedTransform::prepare() @ 0x34309053 in /workspace/clickhouse
2022.10.30 20:53:35.402382 [ 421 ] {} <Fatal> BaseDaemon: 10. ./build_docker/../src/Processors/Executors/ExecutingGraph.cpp:0: DB::ExecutingGraph::updateNode(unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*>>>&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*>>>&) @ 0x33cdcd03 in /workspace/clickhouse
2022.10.30 20:53:35.485373 [ 421 ] {} <Fatal> BaseDaemon: 11. ./build_docker/../src/Processors/Executors/PipelineExecutor.cpp:248: DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) @ 0x33cccea6 in /workspace/clickhouse
2022.10.30 20:53:35.582289 [ 421 ] {} <Fatal> BaseDaemon: 12.1. inlined from ./build_docker/../src/Processors/Executors/PipelineExecutor.cpp:324: operator()
2022.10.30 20:53:35.582426 [ 421 ] {} <Fatal> BaseDaemon: 12.2. inlined from ./build_docker/../contrib/libcxx/include/__functional/invoke.h:394: decltype(std::declval<DB::PipelineExecutor::spawnThreads()::$_0&>()()) std::__1::__invoke[abi:v15003]<DB::PipelineExecutor::spawnThreads()::$_0&>(DB::PipelineExecutor::spawnThreads()::$_0&)
2022.10.30 20:53:35.582517 [ 421 ] {} <Fatal> BaseDaemon: 12.3. inlined from ./build_docker/../contrib/libcxx/include/tuple:1789: decltype(auto) std::__1::__apply_tuple_impl[abi:v15003]<DB::PipelineExecutor::spawnThreads()::$_0&, std::__1::tuple<>&>(DB::PipelineExecutor::spawnThreads()::$_0&, std::__1::tuple<>&, std::__1::__tuple_indices<>)
2022.10.30 20:53:35.582601 [ 421 ] {} <Fatal> BaseDaemon: 12.4. inlined from ./build_docker/../contrib/libcxx/include/tuple:1798: decltype(auto) std::__1::apply[abi:v15003]<DB::PipelineExecutor::spawnThreads()::$_0&, std::__1::tuple<>&>(DB::PipelineExecutor::spawnThreads()::$_0&, std::__1::tuple<>&)
2022.10.30 20:53:35.582673 [ 421 ] {} <Fatal> BaseDaemon: 12.5. inlined from ./build_docker/../src/Common/ThreadPool.h:196: operator()
2022.10.30 20:53:35.582763 [ 421 ] {} <Fatal> BaseDaemon: 12.6. inlined from ./build_docker/../contrib/libcxx/include/__functional/invoke.h:394: decltype(std::declval<DB::PipelineExecutor::spawnThreads()::$_0>()()) std::__1::__invoke[abi:v15003]<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()&>(DB::PipelineExecutor::spawnThreads()::$_0&&)
2022.10.30 20:53:35.582862 [ 421 ] {} <Fatal> BaseDaemon: 12.7. inlined from ./build_docker/../contrib/libcxx/include/__functional/invoke.h:479: void std::__1::__invoke_void_return_wrapper<void, true>::__call<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()&>(ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()&)
2022.10.30 20:53:35.582949 [ 421 ] {} <Fatal> BaseDaemon: 12.8. inlined from ./build_docker/../contrib/libcxx/include/__functional/function.h:235: std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>::operator()[abi:v15003]()
2022.10.30 20:53:35.582999 [ 421 ] {} <Fatal> BaseDaemon: 12. ./build_docker/../contrib/libcxx/include/__functional/function.h:716: void std::__1::__function::__policy_invoker<void ()>::__call_impl<std::__1::__function::__default_alloc_func<ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'(), void ()>>(std::__1::__function::__policy_storage const*) @ 0x33cd09ec in /workspace/clickhouse
2022.10.30 20:53:35.652366 [ 421 ] {} <Fatal> BaseDaemon: 13.1. inlined from ./build_docker/../base/base/wide_integer_impl.h:774: bool wide::integer<128ul, unsigned int>::_impl::operator_eq<wide::integer<128ul, unsigned int>>(wide::integer<128ul, unsigned int> const&, wide::integer<128ul, unsigned int> const&)
2022.10.30 20:53:35.652469 [ 421 ] {} <Fatal> BaseDaemon: 13.2. inlined from ./build_docker/../base/base/wide_integer_impl.h:1441: bool wide::operator==<128ul, unsigned int, 128ul, unsigned int>(wide::integer<128ul, unsigned int> const&, wide::integer<128ul, unsigned int> const&)
2022.10.30 20:53:35.652548 [ 421 ] {} <Fatal> BaseDaemon: 13.3. inlined from ./build_docker/../base/base/strong_typedef.h:42: StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag>::operator==(StrongTypedef<wide::integer<128ul, unsigned int>, DB::UUIDTag> const&) const
2022.10.30 20:53:35.652637 [ 421 ] {} <Fatal> BaseDaemon: 13.4. inlined from ./build_docker/../src/Common/OpenTelemetryTraceContext.h:39: DB::OpenTelemetry::Span::isTraceEnabled() const
2022.10.30 20:53:35.652687 [ 421 ] {} <Fatal> BaseDaemon: 13. ./build_docker/../src/Common/ThreadPool.cpp:296: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x1f62a901 in /workspace/clickhouse
2022.10.30 20:53:35.739845 [ 421 ] {} <Fatal> BaseDaemon: 14.1. inlined from ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:302: std::__1::unique_ptr<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()>, std::__1::default_delete<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()>>>::reset[abi:v15003](std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()>*)
2022.10.30 20:53:35.739946 [ 421 ] {} <Fatal> BaseDaemon: 14.2. inlined from ./build_docker/../contrib/libcxx/include/__memory/unique_ptr.h:259: ~unique_ptr
2022.10.30 20:53:35.739995 [ 421 ] {} <Fatal> BaseDaemon: 14. ./build_docker/../contrib/libcxx/include/thread:297: void* std::__1::__thread_proxy[abi:v15003]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()>>(void*) @ 0x1f634e4d in /workspace/clickhouse
2022.10.30 20:53:35.740056 [ 421 ] {} <Fatal> BaseDaemon: 15. ? @ 0x7f7d36806609 in ?
2022.10.30 20:53:35.740113 [ 421 ] {} <Fatal> BaseDaemon: 16. __clone @ 0x7f7d3672b133 in ?
2022.10.30 20:53:36.614686 [ 421 ] {} <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read. (calculated checksum: 8E5FBC4DC6E786E0A7B0705410835CC6)

```
const auto * func = child->as<ASTFunction>();
        if (func && func->name == "lambda")
            continue;
        makeSetsForIndex(child);
    }
    const auto * func = node->as<ASTFunction>();
    if (func && functionIsInOrGlobalInOperator(func->name))
    {
        const IAST & args = *func->arguments;
        const ASTPtr & left_in_operand = args.children.at(0);
        if (storage()->mayBenefitFromIndexForIn(left_in_operand, getContext(), metadata_snapshot))
        {
            const ASTPtr & arg = args.children.at(1);
            if (arg->as<ASTSubquery>() || arg->as<ASTTableIdentifier>())
            {
                if (settings.use_index_for_in_with_subqueries)
                    tryMakeSetForIndexFromSubquery(arg, query_options);
            }
            else
            {
                auto temp_actions = std::make_shared<ActionsDAG>(columns_after_join);
                getRootActions(left_in_operand, true, temp_actions);
                if (prepared_sets && temp_actions->tryFindInOutputs(left_in_operand->getColumnName()))
                    makeExplicitSet(func, *temp_actions, true, getContext(), settings.size_limits_for_set, *prepared_sets);
            }
        }
    }
}
void ExpressionAnalyzer::getRootActions(const ASTPtr & ast, bool no_makeset_for_subqueries, ActionsDAGPtr & actions, bool only_consts)