

def _parse_url(translator, expr):
    op = expr.op()
    (arg, extract, key) = op.args
    arg_formatted = translator.translate(arg)
    if (key is None):
        return "parse_url({0}, '{1}')".format(arg_formatted, extract)
    else:
        key_fmt = translator.translate(key)
        return "parse_url({0}, '{1}', {2})".format(arg_formatted, extract, arg)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _parse_url/VarMisuse@83/122 `key_fmt`->`arg`