

def get_result(self):
    op = self.expr.op()
    if isinstance(op, ops.Join):
        self._walk_join_tree(op)
    else:
        self.join_tables.append(self._format_table(self.expr))
    buf = StringIO()
    buf.write(self.join_tables[0])
    for (jtype, table, preds) in zip(self.join_types, self.join_tables[1:], self.join_predicates):
        buf.write('\n')
        buf.write(util.indent('{0} {1}'.format(jtype, table), self.indent))
        if len(buf):
            buf.write('\n')
            fmt_preds = [self._translate(pred) for pred in preds]
            conj = ' AND\n{0}'.format((' ' * 3))
            fmt_preds = util.indent(('ON ' + conj.join(fmt_preds)), (self.indent * 2))
            buf.write(fmt_preds)
    return buf.getvalue()

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _TableSetFormatter.get_result/VarMisuse@142/169 `preds`->`buf`