def _validate_join_predicates(left, right, predicates):
    from ibis.expr.analysis import fully_originate_from
    for predicate in predicates:
        if (not fully_originate_from(predicate, [left, right])):
            raise com.RelationError('The expression {!r} does not fully originate from dependencies of the table expression.'.format(predicate))
def _validate_join_predicates(left, right, predicates):
    from ibis.expr.analysis import fully_originate_from
    for predicate in predicates:
        if (not fully_originate_from(predicate, [left, right])):
            raise com.RelationError('The expression {!r} does not fully originate from dependencies of the table expression.'.format(predicate))