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

Method iter_exprs

tests/comparison/funcs.py:195–205  ·  view source on GitHub ↗

Returns an iterator over all val_exprs including those nested within this function's args.

(self, filter=None)

Source from the content-addressed store, hash-verified

193 return any(self.iter_exprs(lambda expr: expr.is_func and expr.contains_subquery))
194
195 def iter_exprs(self, filter=None):
196 '''Returns an iterator over all val_exprs including those nested within this
197 function's args.
198 '''
199 for arg in self.args:
200 if not isinstance(arg, ValExpr):
201 continue
202 if not filter or filter(arg):
203 yield arg
204 for expr in arg.iter_exprs(filter=filter):
205 yield expr
206
207 def __hash__(self):
208 return hash(type(self)) + hash(self.signature) + hash(tuple(self.args))

Callers 4

contains_subqueryMethod · 0.95
_create_having_clauseMethod · 0.45
nested_queriesMethod · 0.45

Calls 1

filterFunction · 0.85

Tested by

no test coverage detected