MCPcopy Create free account
hub / github.com/apache/impala / uncheckedCastTo

Method uncheckedCastTo

fe/src/main/java/org/apache/impala/analysis/Expr.java:1643–1646  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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);

Callers 6

castToMethod · 0.95
uncheckedCastChildMethod · 0.95
analyzeBoundaryValueMethod · 0.45
analyzeKuduOptionsMethod · 0.45
analyzeImplMethod · 0.45

Calls 1

createImplicitMethod · 0.95

Tested by

no test coverage detected