1#include "duckdb/common/exception.hpp"
2#include "duckdb/parser/expression/lambda_expression.hpp"
3#include "duckdb/parser/transformer.hpp"
4
5namespace duckdb {
6
7unique_ptr<ParsedExpression> Transformer::TransformLambda(duckdb_libpgquery::PGLambdaFunction &node) {
8 D_ASSERT(node.lhs);
9 D_ASSERT(node.rhs);
10
11 auto lhs = TransformExpression(node: node.lhs);
12 auto rhs = TransformExpression(node: node.rhs);
13 D_ASSERT(lhs);
14 D_ASSERT(rhs);
15 return make_uniq<LambdaExpression>(args: std::move(lhs), args: std::move(rhs));
16}
17
18} // namespace duckdb
19