Repository navigation
feat(napi): expose named query parameters (param_named) on ExecuteOptions - #98
Closed
msrathore-db wants to merge 1 commit into
Closed
msrathore-db wants to merge 1 commit into
msrathore-db wants to merge 1 commit into
Conversation
This was referenced May 31, 2026
msrathore-db
force-pushed
the
msrathore/krn-napi-typedvalue-codec
branch
from
June 1, 2026 01:11
16b1bec to
88e5e97
Compare
…ions
Adds namedParams (Array<{name, sqlType, value?}>) alongside positionalParams,
decoded via the same parse_typed_value codec and bound with
StatementSpec::param_named. Named is the SEA-spec-required public param form
(StatementParameter.name is openapi_required); positional is the
documented-undocumented variant.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
msrathore-db
force-pushed
the
msrathore/krn-napi-named-params
branch
from
June 1, 2026 01:12
2146002 to
5f7632a
Compare
Collaborator
Author
|
Closing as superseded by #101, which is now the main-based kernel SEA parity mega PR for agent review. The branch is preserved and this can be reopened if we decide to return to smaller stacked reviews. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds named query parameters to the napi
ExecuteOptions, completing param parity alongside #84's positional codec:namedParams: Array<{ name, sqlType, value? }>(newNamedTypedValueInput), decoded through the sameparse_typed_valuecodec as positional, then bound viaStatementSpec::param_named.?vs:name); the node adapter enforces it, the kernel binds whichever is present.Why
Named binding is actually the SEA-spec-required public param form — the canonical SEA proto marks
StatementParameter.nameasopenapi_required=true(positional isPUBLIC_UNDOCUMENTED). #84 shipped positional-only and flagged named as a follow-on; this is that follow-on. The kernel (StatementSpec.named_params/param_named/named_typed_value_to_sea_parameter) and the SEA wire already fully support it — this only adds the napi surface.Stack / consumers
Stacked on #84. Consumed by databricks-sql-nodejs#403 (
SeaSessionBackendforwardsnamedParameters→namedParams). Verified live: named INT/STRING/DECIMAL/multi-param bind correctly; mixing positional+named is rejected.Tests
cargo build/fmt/clippy -D warningsclean; 56 napi tests pass.This pull request and its description were written by Isaac.