def __init__( self, schema: WritableTableSchema, required_columns: Sequence[str], tag_column_map: Mapping[str, Mapping[str, str]], promoted_tags: Mapping[str, Sequence[str]], state_name: ReplacerState, use_promoted_prewhere: bool, ) -> None: super().__init__(schema=schema) self.__required_columns = required_columns self.__all_columns = [ col for col in schema.get_columns() if not col.type.has_modifier(ReadOnly) ] self.__tag_column_map = tag_column_map self.__promoted_tags = promoted_tags self.__state_name = state_name self.__use_promoted_prewhere = use_promoted_prewhere self.__schema = schema self.__replacement_context = ReplacementContext( all_columns=self.__all_columns, state_name=self.__state_name, required_columns=self.__required_columns, use_promoted_prewhere=self.__use_promoted_prewhere, schema=self.__schema, tag_column_map=self.__tag_column_map, promoted_tags=self.__promoted_tags, )
def __init__( self, schema: WritableTableSchema, required_columns: Sequence[str], tag_column_map: Mapping[str, Mapping[str, str]], promoted_tags: Mapping[str, Sequence[str]], state_name: ReplacerState, ) -> None: super().__init__(schema=schema) self.__required_columns = required_columns self.__all_columns = [ col for col in schema.get_columns() if not isinstance(col.type, ReadOnly) ] self.__tag_column_map = tag_column_map self.__promoted_tags = promoted_tags self.__state_name = state_name
def __init__( self, write_schema: WritableTableSchema, read_schema: TableSchema, required_columns: Sequence[str], tag_column_map: Mapping[str, Mapping[str, str]], promoted_tags: Mapping[str, Sequence[str]], state_name: ReplacerState, ) -> None: super().__init__(write_schema=write_schema, read_schema=read_schema) self.__required_columns = required_columns self.__all_column_names = [ col.escaped for col in write_schema.get_columns() if Materialized not in col.type.get_all_modifiers() ] self.__tag_column_map = tag_column_map self.__promoted_tags = promoted_tags self.__state_name = state_name