Repository navigation
fix(frontend): restore main build after #31795/#31798 merge (writeDisposition) - #31813
Closed
MatrixAdventurer wants to merge 1 commit into
Closed
MatrixAdventurer wants to merge 1 commit into
MatrixAdventurer wants to merge 1 commit into
Conversation
…sition merges matrixorigin#31795 added a 'return true' fail-closed branch in classifyStatementWrite while matrixorigin#31798 changed the function to return writeDisposition, so main at f6feb84 does not compile. Return writePersistent, the fail-closed value.
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? |
1 of 7 tasks
XuPeng-SH
added a commit
that referenced
this pull request
Oct 30, 2026
## What type of PR is this? - [ ] API-change - [x] BUG - [ ] Improvement - [ ] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Refs #29249 ## What this PR does / why we need it: The combination of #31795 and #31798 left a boolean return in a function that now returns `writeDisposition`, breaking the main build. Return `writePersistent` for an unresolved or derived DELETE source, preserving the existing fail-closed behavior. The same one-line correction is proposed in #31813; that PR's main CI is currently blocked by its preflight description check. Validation on darwin/arm64, Go 1.27.1, `GOEXPERIMENT=simd`: - Full `pkg/frontend` unit suite passed (`-count=1`). - Affected read-only classification tests passed with `-race -count=1`, including the existing derived-source case. - Configured incremental SCA for `./pkg/frontend` passed with 0 issues. GitHub CI is pending.
Contributor
|
fixed |
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 type of PR is this?
Which issue(s) this PR fixes:
No issue filed; main does not compile at f6feb84.
Summary
go build ./pkg/frontendfails on main f6feb84:#31795 (resolve DELETE targets in their source scope) added a
return true // Missing or derived source: fail closed.branch inclassifyStatementWrite. #31798 (consolidate UPDATE target ownership), merged next, changed that function to returnwriteDisposition. Each PR compiled alone; the merge result does not.Fix (1 line): return
writePersistent, the fail-closed value the neighbouring branches already use. Behaviour is the same as #31795 intended: a DELETE target that does not resolve to a FROM source still needs write access.Verification
mo-servicebuild andgo vet ./pkg/frontendfail with the error above.mo-servicebuilds;go test ./pkg/frontend -run 'ReadOnly|ClassifyStatement|StatementWrite' -count=1passes (includesTestDeleteReadOnlyClassification*withdelete tt from (select 1 as a) as tt,delete tt from otherdb.tt).Merge Danger
None. One line in one production file.