

def get_result(self):
    base_str.buf.seek(0)
    self.buf.write('CASE')
    if (self.base is not None):
        base_str = self._trans(self.base)
        self.buf.write(' {0}'.format(base_str))
    for (case, result) in zip(self.cases, self.results):
        self._next_case()
        case_str = self._trans(case)
        result_str = self._trans(result)
        self.buf.write('WHEN {0} THEN {1}'.format(case_str, result_str))
    if (self.default is not None):
        self._next_case()
        default_str = self._trans(self.default)
        self.buf.write('ELSE {0}'.format(default_str))
    if self.multiline:
        self.buf.write('\nEND')
    else:
        self.buf.write(' END')
    return self.buf.getvalue()

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py CaseFormatter.get_result/VarMisuse@10/12 `self`->`base_str`