
**Describe the bug**
```
../base/common/../common/arithmeticOverflow.h:36:17: runtime error: signed integer overflow: 0x1f98e7e04efb298f6a6818a000000000 + 0x698966af4af2770becebbb8000000000 cannot be represented in type '__int128'
```

https://clickhouse-test-reports.s3.yandex.net/19406/9d904e1f820fa99fa7bd30086b9b74e6a053b76b/fuzzer_ubsan/report.html#fail1

```
../base/common/../common/arithmeticOverflow.h:36:17: runtime error: signed integer overflow: 0x1f98e7e04efb298f6a6818a000000000 + 0x698966af4af2770becebbb8000000000 cannot be represented in type '__int128'
    #0 0x127bddb8 in __int128 DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, true>::applyScaled<false, true>(__int128, __int128, __int128) (/workspace/clickhouse+0x127bddb8)
    #1 0x128f8858 in void DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, true>::process<(DB::impl_::OpCase)2, true, false, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >, __int128>(DB::DecimalPaddedPODArray<DB::Decimal<__int128> > const&, __int128 const&, DB:
:DecimalPaddedPODArray<DB::Decimal<__int128> >&, __int128, __int128) (/workspace/clickhouse+0x128f8858)
    #2 0x128f7da9 in void DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::helperInvokeEither<(DB::impl_::OpCase)2, true, false, DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, false>, DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__i
nt128>, true>, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >, __int128, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >, DB::Decimal<__int128>, DB::Decimal<__int128> >(DB::DecimalPaddedPODArray<DB::Decimal<__int128> > const&, __int128 const&, DB::DecimalPaddedPODArray<DB::Decimal
<__int128> >&, DB::Decimal<__int128>, DB::Decimal<__int128>) const (/workspace/clickhouse+0x128f7da9)
    #3 0x129016ca in COW<DB::IColumn>::immutable_ptr<DB::IColumn> DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeNumericWithDecimal<DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char>, DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::Dat
aTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char>, DB::ColumnDecimal<DB::Decimal<__int128> >, DB::ColumnVector<signed char> >(DB::DataTypeDecimal<DB::Decimal<__int128> > const&, DB::DataTypeNumber<signed char> const&, DB::ColumnConst const*, DB::ColumnConst const*,
DB::ColumnDecimal<DB::Decimal<__int128> > const*, DB::ColumnVector<signed char> const*, unsigned long) const (/workspace/clickhouse+0x129016ca)
    #4 0x12900ca1 in COW<DB::IColumn>::immutable_ptr<DB::IColumn> DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeNumeric<DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char> >(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocato
r<DB::ColumnWithTypeAndName> > const&, DB::DataTypeDecimal<DB::Decimal<__int128> > const&, DB::DataTypeNumber<signed char> const&) const (/workspace/clickhouse+0x12900ca1)
    #5 0x12900a8e in auto DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const::'lambda'(au
to const&, auto const&)::operator()<DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char> >(auto const&, auto const&) const (/workspace/clickhouse+0x12900a8e)
    #6 0x1279a93b in _ZN2DBL16castTypeToEitherIJNS_14DataTypeNumberIDuEENS1_ItEENS1_IjEENS1_ImEENS1_IN4wide7integerILm256EjEEEENS1_IaEENS1_IsEENS1_IiEENS1_IlEENS1_InEENS1_INS7_ILm256EiEEEENS1_IfEENS1_IdEENS_12DataTypeDateENS_16DataTypeDateTimeENS_15DataTypeDecimalINS_7DecimalIiEEEENSL_
INSM_IlEEEENSL_INSM_InEEEENSL_INSM_ISF_EEEENS_19DataTypeFixedStringEENS_9IDataTypeEZZNS_24FunctionBinaryArithmeticINS_8PlusImplENS_8NamePlusELb1EE13castBothTypesIZNKS10_11executeImplERKNSt3__16vectorINS_21ColumnWithTypeAndNameENS12_9allocatorIS14_EEEERKNS12_10shared_ptrIKSW_EEmEUlRKT_R
KT0_E_EEbPS1B_S1M_OS1F_ENKUlS1H_E_clISS_EEDaS1H_EUlS1H_E_EEbPS1J_OT1_ (/workspace/clickhouse+0x1279a93b)
    #7 0x127a935e in auto bool DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::castBothTypes<DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&,
std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()<DB::DataTypeDecimal<DB::Decimal<__int128> > >(auto const&) const (/workspace/clickhouse+0x1
27a935e)
    #8 0x12791561 in _ZN2DBL16castTypeToEitherIJNS_14DataTypeNumberIDuEENS1_ItEENS1_IjEENS1_ImEENS1_IN4wide7integerILm256EjEEEENS1_IaEENS1_IsEENS1_IiEENS1_IlEENS1_InEENS1_INS7_ILm256EiEEEENS1_IfEENS1_IdEENS_12DataTypeDateENS_16DataTypeDateTimeENS_15DataTypeDecimalINS_7DecimalIiEEEENSL_
INSM_IlEEEENSL_INSM_InEEEENSL_INSM_ISF_EEEENS_19DataTypeFixedStringEENS_9IDataTypeEZNS_24FunctionBinaryArithmeticINS_8PlusImplENS_8NamePlusELb1EE13castBothTypesIZNKS10_11executeImplERKNSt3__16vectorINS_21ColumnWithTypeAndNameENS12_9allocatorIS14_EEEERKNS12_10shared_ptrIKSW_EEmEUlRKT_RK
T0_E_EEbPS1B_S1M_OS1F_EUlS1H_E_EEbPS1J_OT1_ (/workspace/clickhouse+0x12791561)
    #9 0x127a765c in DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const (/workspace/click
house+0x127a765c)
    #10 0x127a6acb in DB::FunctionBinaryArithmeticWithConstants<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const (/w
orkspace/clickhouse+0x127a6acb)
    #11 0x11837086 in DB::DefaultExecutable::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const (/workspace/clickhouse+0x11837086)
    #12 0x122e944b in DB::ExecutableFunctionAdaptor::executeWithoutLowCardinalityColumns(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const (/workspace/clickho
use+0x122e944b)
    #13 0x122ea36d in DB::ExecutableFunctionAdaptor::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const (/workspace/clickhouse+0x122ea36d)
    #14 0x1990f5d3 in DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) obj-x86_64-linux-gnu/../src/Interpreters/ExpressionActions.cpp:333:56
    #15 0x1990ebbf in DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const obj-x86_64-linux-gnu/../src/Interpreters/ExpressionActions.cpp:449:13
    #16 0x1aea9d0d in DB::ExpressionTransform::transform(DB::Chunk&) obj-x86_64-linux-gnu/../src/Processors/Transforms/ExpressionTransform.cpp:25:17
    #17 0x1a566f61 in DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) obj-x86_64-linux-gnu/../src/Processors/ISimpleTransform.h:42:9
    #18 0x1ac92c5f in DB::ISimpleTransform::work() obj-x86_64-linux-gnu/../src/Processors/ISimpleTransform.cpp:89:9
    #19 0x1ace2728 in DB::executeJob(DB::IProcessor*) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:79:20
    #20 0x1ace2616 in DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0::operator()() const obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:96:13
    #21 0x1ace2616 in decltype(std::__1::forward<DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0&>(fp)()) std::__1::__invoke<DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0&>(DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0&) obj-x86_64-linux-gnu/.
./contrib/libcxx/include/type_traits:3676:1
    #22 0x1ace1023 in std::__1::__function::__policy_func<void ()>::operator()() const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2221:16
    #23 0x1ace1023 in std::__1::function<void ()>::operator()() const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12
    #24 0x1ace1023 in DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:580:17
    #25 0x1ace2f46 in DB::PipelineExecutor::executeSingleThread(unsigned long, unsigned long) obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:473:5
    #26 0x1ace2f46 in DB::PipelineExecutor::executeImpl(unsigned long)::$_4::operator()() const obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:771:21
    #27 0x1ace2f46 in decltype(std::__1::forward<DB::PipelineExecutor::executeImpl(unsigned long)::$_4&>(fp)()) std::__1::__invoke_constexpr<DB::PipelineExecutor::executeImpl(unsigned long)::$_4&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&) obj-x86_64-linux-gnu/../contrib/l
ibcxx/include/type_traits:3682:1
    #28 0x1ace2e09 in decltype(auto) std::__1::__apply_tuple_impl<DB::PipelineExecutor::executeImpl(unsigned long)::$_4&, std::__1::tuple<>&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&, std::__1::tuple<>&, std::__1::__tuple_indices<>) obj-x86_64-linux-gnu/../contrib/libcxx/
include/tuple:1415:1
    #29 0x1ace2e09 in decltype(auto) std::__1::apply<DB::PipelineExecutor::executeImpl(unsigned long)::$_4&, std::__1::tuple<>&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&, std::__1::tuple<>&) obj-x86_64-linux-gnu/../contrib/libcxx/include/tuple:1424:1
    #30 0x1ace2e09 in ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&)::'lambda'()::operator()() obj-x86_64-linux-gnu/../src/Common/ThreadPool.h:178:13
    #31 0x1ace2e09 in decltype(std::__1::forward<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&)::'lambda'()&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3676:1
    #32 0xe07298e in std::__1::function<void ()>::operator()() const obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2560:12
    #33 0xe07298e in ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:247:17
    #34 0xe076665 in void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()::operator()() const obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:124:73
    #35 0xe076665 in decltype(std::__1::forward<void>(fp)(std::__1::forward<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(fp0)...)) std::__1::__invoke<void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(void&&, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()&&...) obj-x86_64-linux-gnu/../contrib/libcxx/include/type_traits:3676:1
    #36 0xe076665 in void std::__1::__thread_execute<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 ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>(std::__1::tuple<void, void ThreadPoolImpl<std::__1::thread>::scheduleImpl<void>(std::__1::function<void ()>, int, std::__1::optional<unsigned long>)::'lambda1'()>&, std::__1::__tuple_indices<>) obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:280:5
    #37 0xe076665 in void* std::__1::__thread_proxy<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 ()>, int, std::__1::optional<unsigned long>)::'lambda1'()> >(void*) obj-x86_64-linux-gnu/../contrib/libcxx/include/thread:291:5
    #38 0x7f0bfb225608 in start_thread /build/glibc-ZN95T4/glibc-2.31/nptl/pthread_create.c:477:8
    #39 0x7f0bfb14c292 in clone /build/glibc-ZN95T4/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../base/common/../common/arithmeticOverflow.h:36:17 in
2021.01.22 11:02:00.777863 [ 76 ] {} <Trace> BaseDaemon: Received signal -3
2021.01.22 11:02:00.778019 [ 151 ] {} <Fatal> BaseDaemon: ########################################
2021.01.22 11:02:00.778112 [ 151 ] {} <Fatal> BaseDaemon: (version 21.2.1.5763, build id: 7EB37A7D3C23EEF4946836BFB675F4B4D0623A53) (from thread 142) (query_id: 72b398b4-0547-47ce-bcad-02c2066e647f) Received signal Unknown signal (-3)
2021.01.22 11:02:00.778147 [ 151 ] {} <Fatal> BaseDaemon: Sanitizer trap.
2021.01.22 11:02:00.778221 [ 151 ] {} <Fatal> BaseDaemon: Stack trace: 0xe046815 0xe270ae6 0xe00a7d6 0xe016a4d 0x127bddb9 0x128f8859 0x128f7daa 0x129016cb 0x12900ca2 0x12900a8f 0x1279a93c 0x127a935f 0x12791562 0x127a765d 0x127a6acc 0x11837087 0x122e944c 0x122ea36e 0x1990f5d4 0x1990ebc0 0x1aea9d0e 0x1a566f62 0x1ac92c60 0x1ace2729 0x1ace2617 0x1ace1024 0x1ace2f47 0x1ace2e0a 0xe07298f 0xe076666 0x7f0bfb225609 0x7f0bfb14c293
2021.01.22 11:02:00.778363 [ 151 ] {} <Fatal> BaseDaemon: 0. ./obj-x86_64-linux-gnu/../src/Common/StackTrace.cpp:293: StackTrace::StackTrace() @ 0xe046815 in /workspace/clickhouse
2021.01.22 11:02:00.778716 [ 151 ] {} <Fatal> BaseDaemon: 1. ./obj-x86_64-linux-gnu/../base/daemon/BaseDaemon.cpp:380: sanitizerDeathCallback() @ 0xe270ae6 in /workspace/clickhouse
2021.01.22 11:02:00.783431 [ 151 ] {} <Fatal> BaseDaemon: 2. __sanitizer::Die() @ 0xe00a7d6 in /workspace/clickhouse
2021.01.22 11:02:00.788006 [ 151 ] {} <Fatal> BaseDaemon: 3. ? @ 0xe016a4d in /workspace/clickhouse
2021.01.22 11:02:00.792503 [ 151 ] {} <Fatal> BaseDaemon: 4. __int128 DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, true>::applyScaled<false, true>(__int128, __int128, __int128) @ 0x127bddb9 in /workspace/clickhouse
2021.01.22 11:02:00.797070 [ 151 ] {} <Fatal> BaseDaemon: 5. void DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, true>::process<(DB::impl_::OpCase)2, true, false, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >, __int128>(DB::DecimalPaddedPODArray<DB::Decimal<__int128> > const&, __int128 const&, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >&, __int128, __int128) @ 0x128f8859 in /workspace/clickhouse
2021.01.22 11:02:00.801605 [ 151 ] {} <Fatal> BaseDaemon: 6. void DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::helperInvokeEither<(DB::impl_::OpCase)2, true, false, DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, false>, DB::impl_::DecimalBinaryOperation<DB::PlusImpl, DB::Decimal<__int128>, true>, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >, __int128, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >, DB::Decimal<__int128>, DB::Decimal<__int128> >(DB::DecimalPaddedPODArray<DB::Decimal<__int128> > const&, __int128 const&, DB::DecimalPaddedPODArray<DB::Decimal<__int128> >&, DB::Decimal<__int128>, DB::Decimal<__int128>) const @ 0x128f7daa in /workspace/clickhouse
2021.01.22 11:02:00.806162 [ 151 ] {} <Fatal> BaseDaemon: 7. COW<DB::IColumn>::immutable_ptr<DB::IColumn> DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeNumericWithDecimal<DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char>, DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char>, DB::ColumnDecimal<DB::Decimal<__int128> >, DB::ColumnVector<signed char> >(DB::DataTypeDecimal<DB::Decimal<__int128> > const&, DB::DataTypeNumber<signed char> const&, DB::ColumnConst const*, DB::ColumnConst const*, DB::ColumnDecimal<DB::Decimal<__int128> > const*, DB::ColumnVector<signed char> const*, unsigned long) const @ 0x129016cb in /workspace/clickhouse
2021.01.22 11:02:00.810750 [ 151 ] {} <Fatal> BaseDaemon: 8. COW<DB::IColumn>::immutable_ptr<DB::IColumn> DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeNumeric<DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char> >(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, DB::DataTypeDecimal<DB::Decimal<__int128> > const&, DB::DataTypeNumber<signed char> const&) const @ 0x12900ca2 in /workspace/clickhouse
2021.01.22 11:02:00.815317 [ 151 ] {} <Fatal> BaseDaemon: 9. auto DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const::'lambda'(auto const&, auto const&)::operator()<DB::DataTypeDecimal<DB::Decimal<__int128> >, DB::DataTypeNumber<signed char> >(auto const&, auto const&) const @ 0x12900a8f in /workspace/clickhouse
2021.01.22 11:02:00.819873 [ 151 ] {} <Fatal> BaseDaemon: 10. _ZN2DBL16castTypeToEitherIJNS_14DataTypeNumberIDuEENS1_ItEENS1_IjEENS1_ImEENS1_IN4wide7integerILm256EjEEEENS1_IaEENS1_IsEENS1_IiEENS1_IlEENS1_InEENS1_INS7_ILm256EiEEEENS1_IfEENS1_IdEENS_12DataTypeDateENS_16DataTypeDateTimeENS_15DataTypeDecimalINS_7DecimalIiEEEENSL_INSM_IlEEEENSL_INSM_InEEEENSL_INSM_ISF_EEEENS_19DataTypeFixedStringEENS_9IDataTypeEZZNS_24FunctionBinaryArithmeticINS_8PlusImplENS_8NamePlusELb1EE13castBothTypesIZNKS10_11executeImplERKNSt3__16vectorINS_21ColumnWithTypeAndNameENS12_9allocatorIS14_EEEERKNS12_10shared_ptrIKSW_EEmEUlRKT_RKT0_E_EEbPS1B_S1M_OS1F_ENKUlS1H_E_clISS_EEDaS1H_EUlS1H_E_EEbPS1J_OT1_ @ 0x1279a93c in /workspace/clickhouse
2021.01.22 11:02:00.824425 [ 151 ] {} <Fatal> BaseDaemon: 11. auto bool DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::castBothTypes<DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const::'lambda'(auto const&, auto const&)>(DB::IDataType const*, DB::IDataType const*, auto&&)::'lambda'(auto const&)::operator()<DB::DataTypeDecimal<DB::Decimal<__int128> > >(auto const&) const @ 0x127a935f in /workspace/clickhouse
2021.01.22 11:02:00.829250 [ 151 ] {} <Fatal> BaseDaemon: 12. _ZN2DBL16castTypeToEitherIJNS_14DataTypeNumberIDuEENS1_ItEENS1_IjEENS1_ImEENS1_IN4wide7integerILm256EjEEEENS1_IaEENS1_IsEENS1_IiEENS1_IlEENS1_InEENS1_INS7_ILm256EiEEEENS1_IfEENS1_IdEENS_12DataTypeDateENS_16DataTypeDateTimeENS_15DataTypeDecimalINS_7DecimalIiEEEENSL_INSM_IlEEEENSL_INSM_InEEEENSL_INSM_ISF_EEEENS_19DataTypeFixedStringEENS_9IDataTypeEZNS_24FunctionBinaryArithmeticINS_8PlusImplENS_8NamePlusELb1EE13castBothTypesIZNKS10_11executeImplERKNSt3__16vectorINS_21ColumnWithTypeAndNameENS12_9allocatorIS14_EEEERKNS12_10shared_ptrIKSW_EEmEUlRKT_RKT0_E_EEbPS1B_S1M_OS1F_EUlS1H_E_EEbPS1J_OT1_ @ 0x12791562 in /workspace/clickhouse
2021.01.22 11:02:00.833758 [ 151 ] {} <Fatal> BaseDaemon: 13. DB::FunctionBinaryArithmetic<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x127a765d in /workspace/clickhouse
2021.01.22 11:02:00.838401 [ 151 ] {} <Fatal> BaseDaemon: 14. DB::FunctionBinaryArithmeticWithConstants<DB::PlusImpl, DB::NamePlus, true>::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x127a6acc in /workspace/clickhouse
2021.01.22 11:02:00.843215 [ 151 ] {} <Fatal> BaseDaemon: 15. DB::DefaultExecutable::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long) const @ 0x11837087 in /workspace/clickhouse
2021.01.22 11:02:00.847978 [ 151 ] {} <Fatal> BaseDaemon: 16. DB::ExecutableFunctionAdaptor::executeWithoutLowCardinalityColumns(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x122e944c in /workspace/clickhouse
2021.01.22 11:02:00.852650 [ 151 ] {} <Fatal> BaseDaemon: 17. DB::ExecutableFunctionAdaptor::execute(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> > const&, std::__1::shared_ptr<DB::IDataType const> const&, unsigned long, bool) const @ 0x122ea36e in /workspace/clickhouse
2021.01.22 11:02:00.854904 [ 151 ] {} <Fatal> BaseDaemon: 18. ./obj-x86_64-linux-gnu/../src/Interpreters/ExpressionActions.cpp:0: DB::executeAction(DB::ExpressionActions::Action const&, DB::(anonymous namespace)::ExecutionContext&, bool) @ 0x1990f5d4 in /workspace/clickhouse
2021.01.22 11:02:00.857153 [ 151 ] {} <Fatal> BaseDaemon: 19. ./obj-x86_64-linux-gnu/../src/Interpreters/ExpressionActions.cpp:0: DB::ExpressionActions::execute(DB::Block&, unsigned long&, bool) const @ 0x1990ebc0 in /workspace/clickhouse
2021.01.22 11:02:00.860546 [ 151 ] {} <Fatal> BaseDaemon: 20. ./obj-x86_64-linux-gnu/../src/Processors/Transforms/ExpressionTransform.cpp:0: DB::ExpressionTransform::transform(DB::Chunk&) @ 0x1aea9d0e in /workspace/clickhouse
2021.01.22 11:02:00.864584 [ 151 ] {} <Fatal> BaseDaemon: 21. ./obj-x86_64-linux-gnu/../src/Processors/ISimpleTransform.h:43: DB::ISimpleTransform::transform(DB::Chunk&, DB::Chunk&) @ 0x1a566f62 in /workspace/clickhouse
2021.01.22 11:02:00.867820 [ 151 ] {} <Fatal> BaseDaemon: 22. ./obj-x86_64-linux-gnu/../src/Processors/ISimpleTransform.cpp:99: DB::ISimpleTransform::work() @ 0x1ac92c60 in /workspace/clickhouse
2021.01.22 11:02:00.871162 [ 151 ] {} <Fatal> BaseDaemon: 23. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:87: DB::executeJob(DB::IProcessor*) @ 0x1ace2729 in /workspace/clickhouse
2021.01.22 11:02:00.874613 [ 151 ] {} <Fatal> BaseDaemon: 24. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:99: decltype(std::__1::forward<DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0&>(fp)()) std::__1::__invoke<DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0&>(DB::PipelineExecutor::addJob(DB::ExecutingGraph::Node*)::$_0&) @ 0x1ace2617 in /workspace/clickhouse
2021.01.22 11:02:00.878175 [ 151 ] {} <Fatal> BaseDaemon: 25. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:0: DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) @ 0x1ace1024 in /workspace/clickhouse
2021.01.22 11:02:00.881805 [ 151 ] {} <Fatal> BaseDaemon: 26. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/memory:2851: decltype(std::__1::forward<DB::PipelineExecutor::executeImpl(unsigned long)::$_4&>(fp)()) std::__1::__invoke_constexpr<DB::PipelineExecutor::executeImpl(unsigned long)::$_4&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&) @ 0x1ace2f47 in /workspace/clickhouse
2021.01.22 11:02:00.885310 [ 151 ] {} <Fatal> BaseDaemon: 27. ./obj-x86_64-linux-gnu/../src/Processors/Executors/PipelineExecutor.cpp:755: decltype(std::__1::forward<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(fp)()) std::__1::__invoke<ThreadFromGlobalPool::ThreadFromGlobalPool<DB::PipelineExecutor::executeImpl(unsigned long)::$_4>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&)::'lambda'()&>(DB::PipelineExecutor::executeImpl(unsigned long)::$_4&&) @ 0x1ace2e0a in /workspace/clickhouse
2021.01.22 11:02:00.885437 [ 151 ] {} <Fatal> BaseDaemon: 28. ./obj-x86_64-linux-gnu/../contrib/libcxx/include/functional:2533: ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0xe07298f in /workspace/clickhouse
2021.01.22 11:02:00.885679 [ 151 ] {} <Fatal> BaseDaemon: 29. ./obj-x86_64-linux-gnu/../src/Common/ThreadPool.cpp:0: void* std::__1::__thread_proxy<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 ()>, int, std::__1::optional<unsigned long>)::'lambda1'()> >(void*) @ 0xe076666 in /workspace/clickhouse
2021.01.22 11:02:00.885746 [ 151 ] {} <Fatal> BaseDaemon: 30. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
2021.01.22 11:02:00.885825 [ 151 ] {} <Fatal> BaseDaemon: 31. clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
2021.01.22 11:02:01.156866 [ 151 ] {} <Fatal> BaseDaemon: Calculated checksum of the binary: B2FC77B8BF3FF5A51F1D0106B0B6C656. There is no information about the reference checksum.
```

{
        return __builtin_mul_overflow(x, y, &res);
    }
    template <>
    inline bool mulOverflow(int x, int y, int & res)
    {
        return __builtin_smul_overflow(x, y, &res);
    }
    template <>
    inline bool mulOverflow(long x, long y, long & res)
    {
        return __builtin_smull_overflow(x, y, &res);
    }
    template <>
    inline bool mulOverflow(long long x, long long y, long long & res)
    {
        return __builtin_smulll_overflow(x, y, &res);
    }
    template <>
    inline bool mulOverflow(__int128 x, __int128 y, __int128 & res)
    {
        res = static_cast<unsigned __int128>(x) * static_cast<unsigned __int128>(y);    
        if (!x || !y)
            return false;
        unsigned __int128 a = (x > 0) ? x : -x;
        unsigned __int128 b = (y > 0) ? y : -y;
        return (a * b) / b != a;
    }
    template <>
    inline bool mulOverflow(wInt256 x, wInt256 y, wInt256 & res)