def _validate_join_tables(left, right):
    if (not isinstance(left, ir.TableExpr)):
        raise TypeError('Can only join table expressions, got {} for left table'.format(type(left).__name__))
    if (not isinstance(right, ir.TableExpr)):
        raise TypeError('Can only join table expressions, got {} for right table'.format(type(right).__name__))
def _validate_join_tables(left, right):
    if (not isinstance(left, ir.TableExpr)):
        raise TypeError('Can only join table expressions, got {} for left table'.format(type(left).__name__))
    if (not isinstance(right, ir.TableExpr)):
        raise TypeError('Can only join table expressions, got {} for right table'.format(type(right).__name__))