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

Method findSrcScanSlot

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

Returns the descriptor of the scan slot that directly or indirectly produces the values of 'this' SlotRef. Traverses the source exprs of intermediate slot descriptors to resolve materialization points (e.g., aggregations). Returns null if 'e' or any source expr of 'e' is not a SlotRef or cast SlotRe

()

Source from the content-addressed store, hash-verified

1757 * Returns null if 'e' or any source expr of 'e' is not a SlotRef or cast SlotRef.
1758 */
1759 public SlotDescriptor findSrcScanSlot() {
1760 Expr sourceExpr = findSrcExpr();
1761 if (sourceExpr == null) {
1762 return null;
1763 }
1764 SlotRef slotRef = sourceExpr.unwrapSlotRef(false);
1765 if (slotRef == null) {
1766 return null;
1767 }
1768 return slotRef.getDesc();
1769 }
1770
1771 /**
1772 * Pushes negation to the individual operands of a predicate

Callers 1

createMethod · 0.80

Calls 3

findSrcExprMethod · 0.95
unwrapSlotRefMethod · 0.95
getDescMethod · 0.95

Tested by

no test coverage detected