def join_schema_func(func):
    """Join the schema and function, if needed, to form a qualified name

    :param func: a schema, function tuple, or just an unqualified function name
    :returns: a possibly-qualified schema.function string
    """
    if isinstance(func, tuple):
        return '%s.%s' % func
    else:
        return func
