Skip to content

Use the new DuckDB lambda syntax to avoid the deprecation warning#23

Open
DS-argus wants to merge 1 commit intowylie102:mainfrom
DS-argus:fix/duckdb-lambda-warning
Open

Use the new DuckDB lambda syntax to avoid the deprecation warning#23
DS-argus wants to merge 1 commit intowylie102:mainfrom
DS-argus:fix/duckdb-lambda-warning

Conversation

@DS-argus
Copy link

Hi, and thanks for this plugin — it has been really nice to use.

While using it on Windows with Yazi 26.1.22 and DuckDB 1.5.0, I noticed DuckDB now emits this warning during preview:

WARNING: Deprecated lambda arrow (->) detected

This PR updates the remaining lambda expression in main.lua from the old arrow form to the current lambda ... : ... syntax:

  • c -> list_contains(...)
  • lambda c : list_contains(...)

As far as I can tell, this does not change behavior and just removes the warning on newer DuckDB versions.

If you'd prefer a different wording or style here, I'm happy to adjust it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant