https://s3.amazonaws.com/clickhouse-test-reports/43343/4f6703c972c2f088aa0b4db2d193d6ad83953fcd/fuzzer_astfuzzerdebug//report.html

```sql
CREATE TABLE sum_map_decimal__fuzz_1 (`statusMap` Array(Tuple(goal_id UInt16, revenue Nullable(Decimal(9, 5))))) engine=Log;
INSERT INTO sum_map_decimal__fuzz_1 VALUES ([1, 2, 3], [1.0, 2.0, 3.0]), ([3, 4, 5], [3.0, 4.0, 5.0]), ([4, 5, 6], [4.0, 5.0, 6.0]), ([6, 7, 8], [6.0, 7.0, 8.0]);
SELECT sumMap(statusMap.goal_id, statusMap.revenue) FROM sum_map_decimal__fuzz_1;
-- 2022.11.19 14:28:55.072659 [ 24560 ] {3508a3f9-a425-4e3c-b9c3-0f078df09840} <Fatal> : Logical error: 'Invalid Field get from type Decimal32 to type Decimal128'.
```

```
2022.11.19 14:22:52.473989 [ 394 ] {ada3bb7f-d9a5-4ce5-b063-98d9a5c952c7} <Fatal> : Logical error: 'Invalid Field get from type Decimal32 to type Decimal128'.
2022.11.19 14:22:52.475049 [ 417 ] {} <Fatal> BaseDaemon: ########################################
2022.11.19 14:22:52.475282 [ 417 ] {} <Fatal> BaseDaemon: (version 22.12.1.1, build id: 46F5C492804A8C2B231F399E7185ABADC0943F00) (from thread 394) (query_id: ada3bb7f-d9a5-4ce5-b063-98d9a5c952c7) (query: SELECT sumMap(statusMap.goal_id, statusMap.revenue) FROM sum_map_decimal__fuzz_1) Received signal Aborted (6)
2022.11.19 14:22:52.475465 [ 417 ] {} <Fatal> BaseDaemon: 
2022.11.19 14:22:52.475696 [ 417 ] {} <Fatal> BaseDaemon: Stack trace: 0x7efd1091000b 0x7efd108ef859 0x20c4a916 0x20c4a9d5 0x20c4aa85 0x1834b5f2 0x18dda472 0x1931b4bd 0x294a4b45 0x22e309e6 0x28017da8 0x27f873fe 0x2a941881 0x2a93e61f 0x2a59a563 0x2a59a266 0x2a578fc1 0x2a5792d7 0x2a57a863 0x2a57a7f5 0x2a57a7d9 0x2a57a73d 0x2a57a642 0x2a57a5b5 0x2a57a595 0x2a57a575 0x2a57a540 0x20c9c8d6 0x20c98ab5 0x20d56c1c 0x20d5dd84 0x20d5dd35 0x20d5dc5d 0x20d5d742 0x7efd10ac7609 0x7efd109ec133
2022.11.19 14:22:52.475945 [ 417 ] {} <Fatal> BaseDaemon: 4. raise @ 0x7efd1091000b in ?
2022.11.19 14:22:52.476086 [ 417 ] {} <Fatal> BaseDaemon: 5. abort @ 0x7efd108ef859 in ?
2022.11.19 14:22:52.642063 [ 417 ] {} <Fatal> BaseDaemon: 6. /build/build_docker/../src/Common/Exception.cpp:40: DB::abortOnFailedAssertion(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&) @ 0x20c4a916 in /workspace/clickhouse
2022.11.19 14:22:52.806089 [ 417 ] {} <Fatal> BaseDaemon: 7. /build/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&) @ 0x20c4a9d5 in /workspace/clickhouse
2022.11.19 14:22:52.954725 [ 417 ] {} <Fatal> BaseDaemon: 8. /build/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) @ 0x20c4aa85 in /workspace/clickhouse
2022.11.19 14:22:54.301902 [ 417 ] {} <Fatal> BaseDaemon: 9. /build/build_docker/../src/Common/Exception.h:38: DB::Exception::Exception<DB::Field::Types::Which&, DB::Field::Types::Which const&>(int, fmt::v8::basic_format_string<char, fmt::v8::type_identity<DB::Field::Types::Which&>::type, fmt::v8::type_identity<DB::Field::Types::Which const&>::type>, DB::Field::Types::Which&, DB::Field::Types::Which const&) @ 0x1834b5f2 in /workspace/clickhouse
2022.11.19 14:22:54.822176 [ 417 ] {} <Fatal> BaseDaemon: 10. /build/build_docker/../src/Core/Field.h:815: DB::NearestFieldTypeImpl<std::__1::decay<DB::Decimal<wide::integer<128ul, int>>>::type, void>::Type& DB::Field::get<DB::Decimal<wide::integer<128ul, int>>>() @ 0x18dda472 in /workspace/clickhouse
2022.11.19 14:22:55.683865 [ 417 ] {} <Fatal> BaseDaemon: 11. /build/build_docker/../src/Core/Field.h:422: auto const& DB::Field::get<DB::Decimal<wide::integer<128ul, int>>>() const @ 0x1931b4bd in /workspace/clickhouse
2022.11.19 14:22:55.998895 [ 417 ] {} <Fatal> BaseDaemon: 12. /build/build_docker/../src/Columns/ColumnDecimal.h:66: DB::ColumnDecimal<DB::Decimal<wide::integer<128ul, int>>>::insert(DB::Field const&) @ 0x294a4b45 in /workspace/clickhouse
2022.11.19 14:22:57.762579 [ 417 ] {} <Fatal> BaseDaemon: 13. /build/build_docker/../src/AggregateFunctions/AggregateFunctionSumMap.h:422: DB::AggregateFunctionMapBase<unsigned short, DB::AggregateFunctionSumMap<unsigned short, false, false>, DB::FieldVisitorSum, false, false, true>::insertResultInto(char*, DB::IColumn&, DB::Arena*) const @ 0x22e309e6 in /workspace/clickhouse
2022.11.19 14:22:58.854104 [ 417 ] {} <Fatal> BaseDaemon: 14. /build/build_docker/../src/Interpreters/Aggregator.cpp:1823: void DB::Aggregator::insertAggregatesIntoColumns<char*>(char*&, std::__1::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn>>>&, DB::Arena*) const @ 0x28017da8 in /workspace/clickhouse
2022.11.19 14:22:59.937408 [ 417 ] {} <Fatal> BaseDaemon: 15. /build/build_docker/../src/Interpreters/Aggregator.cpp:2169: DB::Aggregator::prepareBlockAndFillWithoutKey(DB::AggregatedDataVariants&, bool, bool) const @ 0x27f873fe in /workspace/clickhouse
2022.11.19 14:23:00.327924 [ 417 ] {} <Fatal> BaseDaemon: 16. /build/build_docker/../src/Processors/Transforms/AggregatingTransform.cpp:333: DB::ConvertingAggregatedToChunksTransform::initialize() @ 0x2a941881 in /workspace/clickhouse
2022.11.19 14:23:00.713376 [ 417 ] {} <Fatal> BaseDaemon: 17. /build/build_docker/../src/Processors/Transforms/AggregatingTransform.cpp:169: DB::ConvertingAggregatedToChunksTransform::work() @ 0x2a93e61f in /workspace/clickhouse
2022.11.19 14:23:00.822797 [ 417 ] {} <Fatal> BaseDaemon: 18. /build/build_docker/../src/Processors/Executors/ExecutionThreadContext.cpp:47: DB::executeJob(DB::ExecutingGraph::Node*, DB::ReadProgressCallback*) @ 0x2a59a563 in /workspace/clickhouse
2022.11.19 14:23:00.928029 [ 417 ] {} <Fatal> BaseDaemon: 19. /build/build_docker/../src/Processors/Executors/ExecutionThreadContext.cpp:92: DB::ExecutionThreadContext::executeTask() @ 0x2a59a266 in /workspace/clickhouse
2022.11.19 14:23:01.130619 [ 417 ] {} <Fatal> BaseDaemon: 20. /build/build_docker/../src/Processors/Executors/PipelineExecutor.cpp:229: DB::PipelineExecutor::executeStepImpl(unsigned long, std::__1::atomic<bool>*) @ 0x2a578fc1 in /workspace/clickhouse
2022.11.19 14:23:01.332959 [ 417 ] {} <Fatal> BaseDaemon: 21. /build/build_docker/../src/Processors/Executors/PipelineExecutor.cpp:195: DB::PipelineExecutor::executeSingleThread(unsigned long) @ 0x2a5792d7 in /workspace/clickhouse
2022.11.19 14:23:01.546394 [ 417 ] {} <Fatal> BaseDaemon: 22. /build/build_docker/../src/Processors/Executors/PipelineExecutor.cpp:316: DB::PipelineExecutor::spawnThreads()::$_0::operator()() const @ 0x2a57a863 in /workspace/clickhouse
2022.11.19 14:23:01.765994 [ 417 ] {} <Fatal> BaseDaemon: 23. /build/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&) @ 0x2a57a7f5 in /workspace/clickhouse
2022.11.19 14:23:01.986473 [ 417 ] {} <Fatal> BaseDaemon: 24. /build/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<>) @ 0x2a57a7d9 in /workspace/clickhouse
2022.11.19 14:23:02.206271 [ 417 ] {} <Fatal> BaseDaemon: 25. /build/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<>&) @ 0x2a57a73d in /workspace/clickhouse
2022.11.19 14:23:02.399650 [ 417 ] {} <Fatal> BaseDaemon: 26. /build/build_docker/../src/Common/ThreadPool.h:196: ThreadFromGlobalPoolImpl<true>::ThreadFromGlobalPoolImpl<DB::PipelineExecutor::spawnThreads()::$_0>(DB::PipelineExecutor::spawnThreads()::$_0&&)::'lambda'()::operator()() @ 0x2a57a642 in /workspace/clickhouse
2022.11.19 14:23:02.619201 [ 417 ] {} <Fatal> BaseDaemon: 27. /build/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&&) @ 0x2a57a5b5 in /workspace/clickhouse
2022.11.19 14:23:02.832152 [ 417 ] {} <Fatal> BaseDaemon: 28. /build/build_docker/../contrib/libcxx/include/__functional/invoke.h:480: 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'()&) @ 0x2a57a595 in /workspace/clickhouse
2022.11.19 14:23:03.046026 [ 417 ] {} <Fatal> BaseDaemon: 29. /build/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]() @ 0x2a57a575 in /workspace/clickhouse
2022.11.19 14:23:03.259046 [ 417 ] {} <Fatal> BaseDaemon: 30. /build/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*) @ 0x2a57a540 in /workspace/clickhouse
2022.11.19 14:23:03.349281 [ 417 ] {} <Fatal> BaseDaemon: 31. /build/build_docker/../contrib/libcxx/include/__functional/function.h:848: std::__1::__function::__policy_func<void ()>::operator()[abi:v15003]() const @ 0x20c9c8d6 in /workspace/clickhouse
2022.11.19 14:23:03.432686 [ 417 ] {} <Fatal> BaseDaemon: 32. /build/build_docker/../contrib/libcxx/include/__functional/function.h:1197: std::__1::function<void ()>::operator()() const @ 0x20c98ab5 in /workspace/clickhouse
2022.11.19 14:23:03.534289 [ 417 ] {} <Fatal> BaseDaemon: 33. /build/build_docker/../src/Common/ThreadPool.cpp:294: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x20d56c1c in /workspace/clickhouse
2022.11.19 14:23:03.653534 [ 417 ] {} <Fatal> BaseDaemon: 34. /build/build_docker/../src/Common/ThreadPool.cpp:144: void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()::operator()() const @ 0x20d5dd84 in /workspace/clickhouse
2022.11.19 14:23:03.778172 [ 417 ] {} <Fatal> BaseDaemon: 35. /build/build_docker/../contrib/libcxx/include/__functional/invoke.h:394: decltype(std::declval<void>()()) std::__1::__invoke[abi:v15003]<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()>(void&&) @ 0x20d5dd35 in /workspace/clickhouse
2022.11.19 14:23:03.902773 [ 417 ] {} <Fatal> BaseDaemon: 36. /build/build_docker/../contrib/libcxx/include/thread:285: void std::__1::__thread_execute[abi:v15003]<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::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, long, std::__1::optional<unsigned long>, bool)::'lambda0'()>&, std::__1::__tuple_indices<>) @ 0x20d5dc5d in /workspace/clickhouse
2022.11.19 14:23:04.028015 [ 417 ] {} <Fatal> BaseDaemon: 37. /build/build_docker/../contrib/libcxx/include/thread:295: 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*) @ 0x20d5d742 in /workspace/clickhouse
2022.11.19 14:23:04.028239 [ 417 ] {} <Fatal> BaseDaemon: 38. ? @ 0x7efd10ac7609 in ?
2022.11.19 14:23:04.028414 [ 417 ] {} <Fatal> BaseDaemon: 39. clone @ 0x7efd109ec133 in ?
2022.11.19 14:23:04.028546 [ 417 ] {} <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read.
```
String getName() const override { return static_cast<const Derived &>(*this).getName(); }
};
template <typename T, bool overflow, bool tuple_argument>
class AggregateFunctionSumMap final :
    public AggregateFunctionMapBase<T, AggregateFunctionSumMap<T, overflow, tuple_argument>, FieldVisitorSum, overflow, tuple_argument, true>
{
private:
    using Self = AggregateFunctionSumMap<T, overflow, tuple_argument>;
    using Base = AggregateFunctionMapBase<T, Self, FieldVisitorSum, overflow, tuple_argument, true>;
public:
    AggregateFunctionSumMap(const DataTypePtr & keys_type_,
            DataTypes & values_types_, const DataTypes & argument_types_,
            const Array & params_)
        : Base{keys_type_, values_types_, argument_types_}
    {
        
        
        assertNoParameters(getName(), params_);
    }
    String getName() const override