You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DuckDB: f(a == b) is displayed as f(a = b), which reparses as a named argument #2808
== is parsed as BinaryOperator::Eq and displayed as =. Inside a function call with DuckDbDialect, a = b is a named argument (supports_named_fn_args_with_eq_operator, #1182), so the output means something else:
SELECT coalesce(a == b) FROM t
-> AST arg: Unnamed(BinaryOp { a Eq b })
-> displays as: SELECT coalesce(a = b) FROM t
-> reparse arg: Named { name: a, arg: b, operator: Equals }
SELECT a == b FROM t
-> displays as SELECT a = b FROM t, same AST (fine)
Activity