@@ -572,8 +572,9 @@ struct ModDecimalImpl {
572572
573573 template <PrimitiveType ResultType>
574574 requires (is_decimal(ResultType) && ResultType != TYPE_DECIMALV2)
575- static inline typename PrimitiveTypeTraits<ResultType>::CppNativeType
576- impl (ArgNativeTypeA a, ArgNativeTypeB b, UInt8& is_null) {
575+ static inline typename PrimitiveTypeTraits<ResultType>::CppNativeType impl (ArgNativeTypeA a,
576+ ArgNativeTypeB b,
577+ UInt8& is_null) {
577578 is_null = b == 0 ;
578579 b += is_null;
579580
@@ -782,13 +783,13 @@ struct ModDecimalImpl {
782783 auto sz = column_right->size ();
783784 if (check_overflow_for_decimal) {
784785 for (size_t i = 0 ; i < sz; ++i) {
785- c[i] = typename DataTypeDecimal<ResultType>::FieldType (apply< true , ResultType>(
786- a[i].value , b[i].value , n[i], max_result_number));
786+ c[i] = typename DataTypeDecimal<ResultType>::FieldType (
787+ apply< true , ResultType>( a[i].value , b[i].value , n[i], max_result_number));
787788 }
788789 } else {
789790 for (size_t i = 0 ; i < sz; ++i) {
790- c[i] = typename DataTypeDecimal<ResultType>::FieldType (apply< false , ResultType>(
791- a[i].value , b[i].value , n[i], max_result_number));
791+ c[i] = typename DataTypeDecimal<ResultType>::FieldType (
792+ apply< false , ResultType>( a[i].value , b[i].value , n[i], max_result_number));
792793 }
793794 }
794795 return ColumnNullable::create (std::move (column_result), std::move (null_map));
@@ -817,23 +818,23 @@ struct ModDecimalImpl {
817818 auto sz = column_right->size ();
818819 if (check_overflow_for_decimal) {
819820 for (size_t i = 0 ; i < sz; ++i) {
820- c[i] = DecimalV2Value (apply<true , TYPE_DECIMALV2>(a[i].value (), b[i].value (),
821- n[i], max_result_number));
821+ c[i] = DecimalV2Value (apply<true , TYPE_DECIMALV2>(a[i].value (), b[i].value (), n[i],
822+ max_result_number));
822823 }
823824 } else {
824825 for (size_t i = 0 ; i < sz; ++i) {
825- c[i] = DecimalV2Value (apply<false , TYPE_DECIMALV2>(a[i].value (), b[i].value (),
826- n[i], max_result_number));
826+ c[i] = DecimalV2Value (apply<false , TYPE_DECIMALV2>(a[i].value (), b[i].value (), n[i],
827+ max_result_number));
827828 }
828829 }
829830 return ColumnNullable::create (std::move (column_result), std::move (null_map));
830831 }
831832
832833 template <bool check_overflow_for_decimal, PrimitiveType ResultType>
833834 requires (is_decimal(ResultType))
834- static ALWAYS_INLINE typename PrimitiveTypeTraits<ResultType>::CppNativeType
835- apply ( ArgNativeTypeA a, ArgNativeTypeB b, UInt8& is_null,
836- const typename PrimitiveTypeTraits<ResultType>::CppType& max_result_number) {
835+ static ALWAYS_INLINE typename PrimitiveTypeTraits<ResultType>::CppNativeType apply (
836+ ArgNativeTypeA a, ArgNativeTypeB b, UInt8& is_null,
837+ const typename PrimitiveTypeTraits<ResultType>::CppType& max_result_number) {
837838 if constexpr (DataTypeA::PType == TYPE_DECIMALV2) {
838839 DecimalV2Value l (a);
839840 DecimalV2Value r (b);
0 commit comments