Skip to content

Commit 6588e64

Browse files
committed
test: Restrict DuckDB lambda test to DuckDbDialect
GenericDialect does not support lambda functions due to syntax conflicts with PostgreSQL JSON operators (specifically the '->' operator). This commit updates test_duckdb_lambda_function to verify lambda syntax only against DuckDbDialect, resolving a test failure where GenericDialect misparsed the lambda expression.
1 parent 974a770 commit 6588e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/sqlparser_duckdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ fn parse_extract_single_quotes() {
875875
fn test_duckdb_lambda_function() {
876876
// Test basic lambda with list_filter
877877
let sql = "SELECT [3, 4, 5, 6].list_filter(lambda x : x > 4)";
878-
duckdb_and_generic().verified_stmt(sql);
878+
duckdb().verified_stmt(sql);
879879

880880
// Test lambda with arrow syntax (also supported by DuckDB)
881881
let sql_arrow = "SELECT list_filter([1, 2, 3], x -> x > 1)";

0 commit comments

Comments
 (0)