Open not-my-profile opened 1 year ago
On the syntactic level, they might be plain Ident
s and not FuncCall
s:
let take_one = func rel -> (take 1)
from table_a
take_one
Here, take_one
is just an ident, that resolves into a closure.
If this makes sense, feel free to close.
For future questions, you can use Discord or the GH discussions.
Pipelines are currently just
Vec<Expr>
:https://github.com/PRQL/prql/blob/d7b2401b9cc4cbef54eb88851983bca8464b7eaa/crates/prql_ast/src/expr.rs#L118-L122
I think having
Expr
for the initial value andVec<FuncCall>
for the transformations would make sense? However I am not so sure since the parser for some reason (?) also passeslambda_func()
, which returns aFunc
(function definition), topipeline()
... I am not sure what's going on there ... 890bd84723c8d322129a4d6b24bd621446cb1a77 introduced this: