Create an expression equivalent to 'this' but returning targetType; possibly by inserting an implicit cast, or by returning an altogether new expression or by returning 'this' with a modified return type'. @param targetType type to be cast to @param compatibility compatibility level used to calc
(Type targetType, TypeCompatibility compatibility)
| 1641 | * convert a string literal to a date literal |
| 1642 | */ |
| 1643 | protected Expr uncheckedCastTo(Type targetType, TypeCompatibility compatibility) |
| 1644 | throws AnalysisException { |
| 1645 | return CastExpr.createImplicit(targetType, this, compatibility); |
| 1646 | } |
| 1647 | |
| 1648 | protected Expr uncheckedCastTo(Type targetType) throws AnalysisException { |
| 1649 | return uncheckedCastTo(targetType, TypeCompatibility.DEFAULT); |
no test coverage detected