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
Commit d470e73
Browse filesBrowse the repository at this point in the historyBrowse files
arguments: reject default values on positional Arg
DuckDB's binder always requires positional arguments, so a default on
Arg(<int>, default=...) could never fire through the SQL path — it was a
misleading no-op. Raise ValueError at construction time in both the
Arg(...) and Arg[T](...) entry points, pointing users at the named-arg
form (Arg("name", default=...)) which DuckDB does honor.
Drops the now-illegal defaults from five fixtures (versioned_data_scan,
versioned_constraints_scan, filter_echo, order_echo, sample_echo); every
call site already passes the argument explicitly, so the defaults were
dead. Converts the corresponding positional+default unit tests in
test_protocol_classes.py to the named form (which exercises the same
"default fires when omitted" semantics) and adds a regression test
covering both rejection paths.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments