

def _count_distinct(translator, expr):
    op = expr.op()
    arg_formatted = translator.translate(op.args[0])
    return 'COUNT(DISTINCT {0})'.format(arg_formatted)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _count_distinct/original