---
source: prql-compiler/src/semantic/resolver.rs
expression: "resolve_derive(r#\"\n func plus_one x -> x + 1\n func plus x y -> x + y\n\n from a\n derive [b = (sum foo | plus_one | plus 2)]\n \"#).unwrap()"
---
- id: 31
Binary:
left:
id: 25
Literal:
Integer: 2
ty:
TypeExpr:
Primitive: Int
op: Add
right:
id: 28
Binary:
left:
id: 16
BuiltInFunction:
name: std.sum
args:
- id: 21
Ident:
- _frame
- a
- foo
target_id: 8
ty: Infer
ty: Infer
op: Add
right:
id: 30
Literal:
Integer: 1
ty:
TypeExpr:
Primitive: Int
ty: Infer
ty:
TypeExpr:
Primitive: Column
alias: b