Skip to content

docs: explain dialect requirement for lambda examples - #26040

Open
Prajwal-k-tech wants to merge 1 commit into
apache:mainfrom
Prajwal-k-tech:prajwal/25960-lambda-dialect
Open

Prajwal-k-tech wants to merge 1 commit into
apache:mainfrom
Prajwal-k-tech:prajwal/25960-lambda-dialect

Conversation

@Prajwal-k-tech

Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

The SQL reference examples for these higher-order array functions use lambda expressions, but the default SQL dialect does not parse the -> syntax. The examples work when a lambda-capable dialect is selected, and the current descriptions do not explain that requirement.

What changes are included in this PR?

  • Add a note to the user documentation for any_match, array_filter, array_first, and array_transform explaining that lambdas require a supporting dialect and showing how to select DuckDB.
  • Regenerate the scalar function reference from the source #[user_doc] descriptions.

This change was prepared with AI assistance. The patch and generated documentation were checked against the issue and repository guidance.

What is the testing strategy for this PR?

This is a documentation-only change, so no runtime tests were added. Verified the generated reference with ./dev/update_function_docs.sh, ran the repository documentation Prettier check, cargo +1.99.0 fmt --all -- --check, cargo clippy --all-targets --all-features -- -D warnings, and git diff --check.

Are there any user-facing changes?

Yes. The SQL function reference now tells users which dialect setting is needed to run the lambda examples.

Copilot AI balanced review requested due to automatic review settings October 4, 2026 21:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added documentation Improvements or additions to documentation functions Changes to functions implementation labels Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lambda examples in the SQL function docs fail with the default dialect

2 participants