Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
71497be to
c08e1bb
Compare
fc1f4a9 to
8a8f161
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
COMMENT — PASS at 8a8f161ba6e9034234553df0c04d5ee260593d10; self-authored PR, so comment only. Reviewed all 12 changed files and affected metadata/execution consumers; no actionable P0–P2 regression found.
Character narrowing requires a proven text domain, preserves type family/charset and rune bounds, and remains conservative for binary, unresolved and NULL cases. Traced folding, comparison/cast, JSON/fulltext, hash/deepcopy, views, prepared reuse, Substrait and distributed transport; no dropped-byte, equality or routing failure identified. Exact-head CI is green.
Evidence gaps: detailed CI logs were unavailable, binary-prepared and historical-v86 compatibility evidence remains author-reported, and upgrade CI was skipped.
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #28901
Related to #28896 (NULLIF regression coverage; no temporal production change required).
What this PR does / why we need it:
Character SUBSTRING/SUBSTR/MID, LEFT, and RIGHT retained a source width such as VARCHAR(5000), even with a constant requested length of 3. Refine the selected character result's width to the proven source/constant-length bound without changing its selected type family, charset, overload, or value semantics.
Validation
Local macOS arm64 / Go 1.26.4, own-worktree native build and service:
52913d41f0ec765d054d5f2a45a195eb5701a103) versus new binary, sequentially on a task-owned store: new reads old-produced views retaining conservative metadata; old reads new-produced VARCHAR(3)/TIME(6) views with correct values and catalog metadata.The bundled test client's Connector/J 8.0.15 truncates binary TIME fractions for both a raw TIME column and NULLIF; an isolated 8.4.0 driver against the same old/new servers preserves them. The shared tester installation was not changed. Text SQL and server expression results already preserve NULLIF's first-argument precision; this PR does not claim a temporal engine correction.
No row-processing algorithm change or measured runtime speedup is claimed. Fresh Linux CI is pending.