Repository navigation
refactor: migrate numeric integer parameters - #29164
Conversation
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed the complete current diff at exact head 1570fe8 against base 161fe8e. The shared INT64 binding contract covers the listed numeric/date-time/vector/string consumers, while SPLIT_PART preserves the legacy UINT32 executor identity through the strict physical adapter and range behavior. Prepared and non-prepared paths, legacy identity, overflow/boundary cases, resolver tests, SQL regressions, and the reported exact-head validation are aligned. No blocking functional, compatibility, or validation issue found.
Merge Queue Status
This pull request spent 1 minute 26 seconds in the queue, with no time running CI. Waiting for any of
All conditions
ReasonPull request #29164 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #28979
What this PR does / why we need it:
Reuses the approved integer-parameter binding contract from #28977 and migrates the numeric, date/time selector, and bounded utility consumers in #28979.
INT64contracts for PERIOD_ADD/PERIOD_DIFF, numeric precision arguments, FROM_DAYS, WEEK/YEARWEEK, TIMESTAMPADD, SUBVECTOR bounds, LAST_QUERY_ID, RANDOM_BYTES, SHA2, SPLIT_PART, and REGEXP optional integer arguments.No global conversion cost, explicit CAST/assignment behavior, integer coercion semantics, or protocol version is changed.
Validation
Local macOS arm64, Go 1.26.4, after merging
mo/mainat22d43911d3:mo-cgo-test -count=1 -timeout=600s ./pkg/sql/plan/function ./pkg/sql/plan— passed.go vet -mod=readonly ./pkg/sql/plan/function ./pkg/sql/planwith repository CGo flags — passed.golangci-lintfor the affected packages — 0 issues.make build— passed before the final upstream merge; affected package suites passed again after the merge.integer_parameter_coercion.sql— 108/108 passed twice on the same test-owned instance, 0 failed/ignored/abnormal; generated result was reviewed.git diff --check— passed.cast_strict/0; plan-shape tests cover native BIGINT and DECIMAL sources, affected package suites/static checks/build passed, and the focused BVT passed again (108/108).