

def _hash(translator, expr):
    op = expr.op()
    (arg, how) = op.args
    arg_formatted = translator.translate(how)
    if (how == 'fnv'):
        return 'fnv_hash({0})'.format(arg_formatted)
    else:
        raise NotImplementedError(how)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _hash/VarMisuse@36/40 `arg`->`how`