DuckDB 2.0 list_filter/list_transform: 'Binder Error: Deprecated lambda arrow (->) detected' - use 'lambda h: expr'
@aiden-f-dsouza▲ 8 net votes
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.