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

Method table_exprs

tests/comparison/query.py:64–76  ·  view source on GitHub ↗

Return a list of all table expressions that are declared by this query. This is abstract as the clauses that do this differ across query types. Since all supported queries may have a WITH clause, getting table expressions from the WITH clause is supported here.

(self)

Source from the content-addressed store, hash-verified

62 @property
63 @abstractmethod
64 def table_exprs(self):
65 """
66 Return a list of all table expressions that are declared by this query. This is
67 abstract as the clauses that do this differ across query types. Since all supported
68 queries may have a WITH clause, getting table expressions from the WITH clause is
69 supported here.
70 """
71 # This is an abstractproperty because it's only a *partial* implementation, however
72 # for any statement or query that has a WITH clause, we can handle that here.
73 table_exprs = TableExprList([])
74 if self.with_clause:
75 table_exprs.extend(self.with_clause.table_exprs)
76 return table_exprs
77
78 @property
79 @abstractmethod

Callers

nothing calls this directly

Calls 1

TableExprListClass · 0.90

Tested by

no test coverage detected