def when(self, case_expr, result_expr):
        case_expr = as_value_expr(case_expr)
        result_expr = as_value_expr(result_expr)

        if not isinstance(case_expr, ir.BooleanValue):
            raise TypeError(case_expr)

        cases = list(self.cases)
        cases.append(case_expr)

        results = list(self.results)
        results.append(result_expr)

        # Maintain immutability
        return SearchedCaseBuilder(cases=cases, results=results,
                                   default=self.default)
Factory method to get a datastore instance from given name, profile and config.
dataset/ETHPy150Open cloudera/ibis/ibis/expr/operations.py/SearchedCaseBuilder.when--crossover with--dataset/ETHPy150Open ooici/pyon/pyon/datastore/datastore.py/DatastoreManager.get_datastore