brimdata / zed

A novel data lake based on super-structured data
https://zed.brimdata.io/
BSD 3-Clause "New" or "Revised" License
1.38k stars 67 forks source link

Fix stateful expressions in UDFs #5093

Closed mattnibs closed 3 months ago

mattnibs commented 6 months ago

This commit fixes an issue with using aggregation expressions user-defined functions where there wasn't a separate state per textual invocation.

Closes #5092

mattnibs commented 3 months ago

Do these two programs produce different output by design?

This seems like a bug to me. Looking into it.

EDIT

Good catch, I think this highlights a limitation of my approach. Going to have to think about this one.