1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
source: prql-compiler/src/semantic/resolver.rs
expression: "resolve_derive(r#\"\n func lag_day x -> s\"lag_day_todo({x})\"\n func ret x dividend_return -> x / (lag_day x) - 1 + dividend_return\n\n from a\n derive (ret b c)\n \"#).unwrap()"
---
- id: 14
Binary:
left:
id: 15
Binary:
left:
id: 12
Ident:
- _frame
- a
- b
target_id: 6
ty: Infer
op: Div
right:
id: 20
SString:
- String: lag_day_todo(
- Expr:
id: 12
Ident:
- _frame
- a
- b
target_id: 6
ty: Infer
- String: )
ty: Infer
ty: Infer
op: Sub
right:
id: 22
Binary:
left:
id: 23
Literal:
Integer: 1
ty:
Literal: Integer
op: Add
right:
id: 13
Ident:
- _frame
- a
- c
target_id: 6
ty: Infer
ty: Infer
ty:
Literal: Column