Fix bug that function get wrong symbol when it's params contain date (#855)
This commit is contained in:
@ -649,6 +649,12 @@ public class ScalarType extends Type {
|
||||
return INVALID;
|
||||
}
|
||||
|
||||
|
||||
if ((t1.isDecimal() || t1.isDecimalV2()) && t2.isDate()
|
||||
|| t1.isDate() && (t2.isDecimal() || t2.isDecimalV2())) {
|
||||
return INVALID;
|
||||
}
|
||||
|
||||
if (t1.isDecimalV2() || t2.isDecimalV2()) {
|
||||
return DECIMALV2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user