MCPcopy Create free account
hub / github.com/apache/datafusion / when

Method when

datafusion/expr/src/conditional_expressions.rs:48–57  ·  view source on GitHub ↗
(&mut self, when: Expr, then: Expr)

Source from the content-addressed store, hash-verified

46 }
47 }
48 pub fn when(&mut self, when: Expr, then: Expr) -> CaseBuilder {
49 self.when_expr.push(when);
50 self.then_expr.push(then);
51 CaseBuilder {
52 expr: self.expr.clone(),
53 when_expr: self.when_expr.clone(),
54 then_expr: self.then_expr.clone(),
55 else_expr: self.else_expr.clone(),
56 }
57 }
58 pub fn otherwise(&mut self, else_expr: Expr) -> Result<Expr> {
59 self.else_expr = Some(Box::new(else_expr));
60 self.build()

Callers 9

plan_pivotFunction · 0.80
format_case_whenFunction · 0.80
plan_all_opFunction · 0.80
describeMethod · 0.80
build_joinFunction · 0.80

Calls 2

pushMethod · 0.45
cloneMethod · 0.45