

def compile(self):
    context = self.context
    if self.distinct:
        union_keyword = 'UNION'
    else:
        union_keyword = 'UNION ALL'
    left_set = context.get_compiled_expr(self.left)
    right_set = context.get_compiled_expr(self.right)
    query = '{0}\n{1}\n{2}'.format(left_set, union_keyword, right_set)
    return query

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py ImpalaUnion.compile/original