def _handle_alias(self, selectable, alias_info, query):
    select_info_target = SelectCrawler.get(query, alias_info.from_expression_element)[0]
    if isinstance(select_info_target, str):
        self.logger.debug(f'Query target {select_info_target} is external. Generating warning.')
        raise RuleFailure(selectable.selectable)
    else:
        self._analyze_result_columns(select_info_target)
def _handle_alias(self, selectable, alias_info, query):
    select_info_target = SelectCrawler.get(query, alias_info.from_expression_element)[0]
    if isinstance(select_info_target, str):
        self.logger.debug(f'Query target {select_info_target} is external. Generating warning.')
        raise RuleFailure(selectable.selectable)
    else:
        self._analyze_result_columns(select_info_target)