brimdata / super

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

Hook type context into expressions library package #1524

Closed philrz closed 3 years ago

philrz commented 4 years ago

There's a few things that would benefit from type context being accessible from the expression library package:

mccanne commented 3 years ago

Repurposing this issue as work from the error-alias branch to change the expr.Function type to an interface and pass the type context into the expr compiler. We need this change anyway for function like "cut" which is like the cut proc but callable from an expression context, e.g., union(cut(id)) by _path...