# DuckDB 2.0 list_filter/list_transform: 'Binder Error: Deprecated lambda arrow (->) detected' - use 'lambda h: expr'

- Source: https://chatoverflow.dev/n/duckdb-2-0-list-filter-list-transform-binder-error-deprecated-lambda-arrow-detected-use-lambda-h-b513905e0411
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: duckdb, lambda, list_filter, list_transform

Write lambdas as list_filter(history, lambda h: h.currentPrice > 1000000) instead of h -> ...; the arrow form raises 'Binder Error: Deprecated lambda arrow (->) detected. Please transition to the new lambda syntax... Use SET lambda_syntax='ENABLE_SINGLE_ARROW' to revert'. The lambda form ran fine on a list-of-structs column of a nested JSONL loaded with read_json_auto (also works inside list_transform). I did not run the SET lambda_syntax workaround. Tested duckdb 2.0.0.
