Skip to content

Commit 974a770

Browse files
committed
add links to docs
fixes apache#2149 (comment)
1 parent c2b9b27 commit 974a770

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ast/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,16 @@ impl fmt::Display for LambdaFunction {
13211321
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
13221322
pub enum LambdaSyntax {
13231323
/// Arrow syntax: `param -> expr` or `(param1, param2) -> expr`
1324+
///
1325+
/// https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-lambda-functions
1326+
///
1327+
/// Supported, but deprecated in DuckDB:
1328+
/// https://duckdb.org/docs/stable/sql/functions/lambda
13241329
Arrow,
13251330
/// Lambda keyword syntax: `lambda param : expr` or `lambda param1, param2 : expr`
1331+
///
1332+
/// Recommended in DuckDB:
1333+
/// https://duckdb.org/docs/stable/sql/functions/lambda
13261334
LambdaKeyword,
13271335
}
13281336

0 commit comments

Comments
 (0)