Repository navigation
fix(sql): enforce zero-width parquet text columns - #29988
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: Assessment: approve Reviewed the complete five-file delta. The shared Parquet append boundary correctly enforces CHAR/VARCHAR(0), preserving empty strings, NULL, existing rollback and other width/type behavior. No actionable defects found. Model: Session: Validation:
Limitations:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 2cce7256fb1e220be899b3f68bf04302ddf9a6ce
Assessment: approve
Reviewed the complete five-file delta. The shared Parquet append boundary correctly enforces CHAR/VARCHAR(0), preserving empty strings, NULL, existing rollback and other width/type behavior. No actionable defects found.
Model: gpt-6-astra / xhigh
Session: 01a12d8f-7dea-77c2-a565-38d45b5564e4 · slot 0 · generation 0
Validation:
-
Traced plain, dictionary, converted scalar, row and nested-text consumers through the shared validator and existing error cleanup.
-
Reviewed regression coverage for zero width, Unicode, invalid UTF-8, empty versus NULL, rollback, LOAD DATA, external SELECT and INSERT SELECT. Existing nonempty-value tests retain their assertions with appropriate positive widths.
-
Verified all changed files and relevant reader/vector dependencies are unchanged from the authored revision. Reused reported full external-package tests, 74 independent PyArrow SQL checks and two successful BVT comparison runs.
-
Frozen exact-head CI records successful build, Ubuntu UT, coverage, arm64 SCA, proxy BVT and pessimistic multi-CN BVT.
-
Source remains clean and git diff --check passes. Review evidence is recorded in attempt-1/review-audit.json.
Limitations:
-
No native tests were rerun locally; frozen CI statuses and author execution reports were reused. Raw execution logs were not supplied.
-
Full issue #29811 text was unavailable; approval covers the documented zero-width follow-up. The reporter's historical dual-CN reproduction was not rerun locally.
Merge Queue Status
This pull request spent 5 minutes 47 seconds in the queue, with no time running CI. ReasonThe pull request can't be updated
HintYou should update or rebase your pull request manually. If you do, this pull request will automatically be requeued once the queue conditions match again. 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:
After #29831, Parquet still accepted nonempty values into
CHAR(0)andVARCHAR(0)because the shared target-width check requiredwidth > 0.LOAD DATAcould persist those values, and external tables could expose them toINSERT ... SELECTwith already-narrow type metadata.This follow-up includes zero in the CHAR/VARCHAR width check at the common Parquet append boundary. Empty strings and NULL remain valid; nonempty strings are rejected before append in plain, dictionary, converted scalar, row, and nested text paths. Existing page/chunk rollback handles the error. Positive widths, BINARY padding, and negative internal width metadata retain their behavior. Four old test scenarios now specify widths that fit their unchanged nonempty values.
This completes the zero-width boundary missed by #29831; the returned report does not establish a newly introduced regression. The issue should be verified by the reporter after merge.
Validation on current main base
02a2823c2007d5e4fb4ada148e93743df337551a, Go 1.27.1, macOS/arm64:pkg/sql/colexec/externalpackage passes viamo-cgo-test -count=1 -timeout=10m.stage/export_format.sqlpasses normal mo-tester comparison twice on the same isolated instance: 173/173 statements each; table/stage/file teardown checked.go vet, configured golangci-lint (0 issues), gofmt, andgit diff --checkpass. The local lint tool uses Go 1.27 and compatible analysis dependencies.No additional allocations or positive-width work are introduced. Runtime validation used one CN with separate LogService/TN configuration; the reporter's Linux/amd64 dual-CN evidence is historical. CI is pending.