Repository navigation
Commit f7e40d2
committed
fix: Run the Ray UDF before aggregation in historical retrieval
In materialization, the Ray engine ran the UDF on raw rows before
aggregation. In historical retrieval, it ran the UDF after aggregation.
So a UDF could only work in one of the two paths. In the other path it
raised an error, and safe_batch_processor hid that error, so users got
values that were never transformed.
Now historical retrieval also runs the UDF on raw rows before
aggregation. This matches the compute engine docs and the Local and
Spark engines. The transformation step is no longer wrapped in
safe_batch_processor, so a UDF error now fails the job.
A UDF that used aggregated column names (for example sum_conv_rate)
must now use the raw column names (for example conv_rate).
Signed-off-by: Chaitany Patel <patelchaitany93@gmail.com>1 parent 2955bdb commit f7e40d2
4 files changed
Lines changed: 15 additions & 11 deletions
File tree
- docs/reference/compute-engine
- sdk/python
- feast/infra/compute_engines/ray
- tests/component/ray
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
340 | 344 | | |
341 | 345 | | |
342 | | - | |
| 346 | + | |
343 | 347 | | |
344 | 348 | | |
345 | | - | |
| 349 | + | |
346 | 350 | | |
347 | 351 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
738 | 741 | | |
739 | 742 | | |
740 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments