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

Method __deepcopy__

tests/comparison/query.py:128–142  ·  view source on GitHub ↗
(self, memo)

Source from the content-addressed store, hash-verified

126 self.execution = StatementExecutionMode.SELECT_STATEMENT
127
128 def __deepcopy__(self, memo):
129 other = Query()
130 memo[self] = other
131 other.parent = memo[self.parent] if self.parent in memo else None
132 other.with_clause = deepcopy(self.with_clause, memo)
133 other.execution = self.execution
134 other.from_clause = deepcopy(self.from_clause, memo)
135 other.select_clause = deepcopy(self.select_clause, memo)
136 other.where_clause = deepcopy(self.where_clause, memo)
137 other.group_by_clause = deepcopy(self.group_by_clause, memo)
138 other.having_clause = deepcopy(self.having_clause, memo)
139 other.union_clause = deepcopy(self.union_clause, memo)
140 other.order_by_clause = deepcopy(self.order_by_clause, memo)
141 other.limit_clause = deepcopy(self.limit_clause, memo)
142 return other
143
144 @property
145 def table_exprs(self):

Callers

nothing calls this directly

Calls 1

QueryClass · 0.70

Tested by

no test coverage detected