gstvg commented on code in PR #21679:
URL: https://github.com/apache/datafusion/pull/21679#discussion_r3104945516
##########
datafusion/sql/src/unparser/expr.rs:
##########
@@ -552,6 +555,30 @@ impl Unparser<'_> {
}
Expr::OuterReferenceColumn(_, col) => self.col_to_sql(col),
Expr::Unnest(unnest) => self.unnest_to_sql(unnest),
+ Expr::HigherOrderFunction(HigherOrderFunction { func, args }) => {
+ let func_name = func.name();
+
+ if let Some(expr) = self
+ .dialect
+ .higher_order_function_to_sql_overrides(self, func_name,
args)?
+ {
+ return Ok(expr);
+ }
+
+ self.function_to_sql_internal(func_name, args)
+ }
+ Expr::Lambda(Lambda { params, body }) => {
+ Ok(ast::Expr::Lambda(ast::LambdaFunction {
+ params: ast::OneOrManyWithParens::Many(
+ params.iter().map(|param|
param.as_str().into()).collect(),
Review Comment:
Yes,
https://github.com/apache/datafusion/pull/21679/changes/797d4beb42b1afe156ca13e0b81a11202b925329
thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]