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

Method __deepcopy__

tests/comparison/common.py:608–624  ·  view source on GitHub ↗
(self, memo)

Source from the content-addressed store, hash-verified

606 % (self.name, ', '.join([str(col) for col in self._cols]))
607
608 def __deepcopy__(self, memo):
609 other = Table(self.name)
610 other.alias = self.alias
611 other.is_visible = self.is_visible
612 cols_by_name = dict()
613 for col in self._cols:
614 result_col = deepcopy(col, memo)
615 other.add_col(result_col)
616 cols_by_name[result_col.name] = result_col
617
618 other._unique_cols = []
619 for col_combo in self._unique_cols:
620 other_col_combo = set()
621 for col in col_combo:
622 other_col_combo.add(cols_by_name[col.name])
623 other.unique_cols.append(other_col_combo)
624 return other
625
626
627class TableExprList(list):

Callers

nothing calls this directly

Implementers 1

CalciteTablejava/calcite-planner/src/main/java/org

Calls 4

TableClass · 0.70
add_colMethod · 0.45
addMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected