Fix bug that function get wrong symbol when it's params contain date (#855)

This commit is contained in:
chenhao
2019-04-01 23:52:06 +08:00
committed by GitHub
parent a1bfc90320
commit 5a438fd0d3

View File

@ -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;
}