We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a314f commit 8bf545bCopy full SHA for 8bf545b
utils/dataconvert/dataconvert.cpp
@@ -2975,7 +2975,7 @@ void DataConvert::joinColTypeForUnion(datatypes::SystemCatalog::TypeHolderStd& u
2975
case datatypes::SystemCatalog::UBIGINT:
2976
case datatypes::SystemCatalog::UDECIMAL:
2977
2978
- if (type.scale != 0 && unionedType.scale != 0)
+ if (type.scale != 0 && (unionedType.scale != 0 || isDecimal(unionedType.colDataType)))
2979
{
2980
const unsigned int digitsBeforeDecimal = type.precision - type.scale;
2981
const unsigned int digitsBeforeDecimalUnion = unionedType.precision - unionedType.scale;
0 commit comments