Repository navigation
fix(function): support large SPACE results - #30207
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 8cd351768615823e9b579a5d213172f5a5815365
Assessment: approve
Reviewed the complete ten-file delta and affected callers; no actionable findings remain. The design coherently separates SPACE’s generated-result bound from VARCHAR column capacity, preserves overload compatibility, and reuses existing conversion, execution and cleanup owners. LONGTEXT metadata supports materialization without allocating its declared capacity.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-8e48-7622-ad17-b605f08450ce · slot 1 · generation 0
Validation:
-
Isolation preflight passed. Verified 192 native inputs and 46 artifact hashes against the repository build owner’s successful receipt.
-
Full pkg/sql/plan/function tests passed, including the 64 MiB boundary, overflow rejection, decimal rounding and NULL/masked rows. Seven unrelated ONNX tests skipped.
-
TestIssue28395And28400StringIntegerConversions passed through the real frontend: 100,000-byte output, LONGTEXT metadata, CTAS, column inputs, SQL/binary prepared reuse and recovery after overflow.
-
Reconciled commands, clean-head fingerprints, exit receipts and retained logs in /home/xupeng/.local/state/mo-bot/jobs/c4f44ab26faa3dcac0eaf44b/attempt-1/validation-audit.json. Final audit and git diff --check passed.
-
Frozen exact-head CI reports successful Ubuntu unit tests and proxy/pessimistic BVT runs.
Limitations:
-
Full BVT suites were not rerun locally; the supplied CI snapshot lacks per-case logs. Author test summaries were not treated as independently verified execution.
-
Standalone issue #30186 text was absent; its reported SPACE behavior was assessed from the frozen PR body.
-
No performance benchmark was run. Larger outputs retain linear CPU/memory costs; wider metadata can affect planner estimates.
Merge Queue Status
This pull request spent 45 minutes 20 seconds in the queue, with no time running CI. ReasonPull request #30207 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:
What this PR does / why we need it:
SPACE(65536)andSPACE(100000)failed because SPACE used VARCHAR's 65,535-character column limit as its generated-result limit. Allow results up to MatrixOne's existing 64 MiB large-string bound and declare LONGTEXT results for all five existing overloads so protocol metadata and materialized results can represent them.Keep existing integer conversion, decimal rounding, NULL/negative-count behavior, and overload IDs. Counts above 64 MiB still fail before allocation. Execution retains the same linear algorithm and existing vector ownership; memory grows with the requested output within this finite bound.
Validation on Go 1.27.1, macOS arm64, with locally built native libraries:
-wto omit debug information.func_string_space70/70,func_string_length55/55,func_string_rtrim_ltrim154/154, anddtype/text_blob143/143. Verified each test database was removed before the next run.CI is pending. Please leave #30186 open for the reporter to verify after merge.