[Bug](function) fix function define of Retention inconsist and change some static_cast to assert cast (#19455)
1. fix function define of `Retention` inconsist, this function return tinyint on `FE` and return uint8 on `BE` 2. make assert_cast support cast to derived 3. change some static cast to assert cast 4. support sum(bool)/avg(bool)
This commit is contained in:
@ -431,7 +431,8 @@ public abstract class Type {
|
||||
}
|
||||
|
||||
public boolean isFixedPointType() {
|
||||
return isScalarType(PrimitiveType.TINYINT) || isScalarType(PrimitiveType.SMALLINT)
|
||||
return isScalarType(PrimitiveType.TINYINT)
|
||||
|| isScalarType(PrimitiveType.SMALLINT)
|
||||
|| isScalarType(PrimitiveType.INT) || isScalarType(PrimitiveType.BIGINT)
|
||||
|| isScalarType(PrimitiveType.LARGEINT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user