Repository navigation
fix(load): authorize Arrow LOAD before planning - #28633
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? |
9996fd1 to
d0d1b70
Compare
|
mo-bot review · Commit: "interrupted" |
|
mo-bot review · Commit: Review belongs to an older commit; it is not a review of the current head. |
|
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: 7bed90b4db90934f96a0274d2ad5aa7537e24345
Assessment: approve
Reviewed the complete five-file delta and affected callers. Early LOAD authorization appropriately reuses the existing privilege owner. Independent database restoration fixes the prior prepared-LOAD misrouting. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1517-7f90-b3f9-c5f9f9e7031b · slot 0 · generation 1
Validation:
-
All six added frontend test functions passed.
-
Public SQL regression passed twice on one cluster: prepared LOAD retained A=2/B=0 after replanning, while DATABASE() remained B.
-
Production MySQL/S3 clients against a counted HTTP fixture confirmed zero source requests for denied direct LOAD, PREPARE, EXPLAIN variants and revoked-privilege rebuilds. Granting INSERT enabled successful loading.
-
The same authorization probe failed against exact merge-base production files: six denied paths accessed the source.
-
Isolation, native provenance, formatting and whitespace checks passed. Commands, source fingerprints, exits and retained logs were reconciled in /home/xupeng/.local/state/mo-bot/jobs/38e41d9fec2a6fc28d1e4025/attempt-1/evidence-audit.json. Source remained unchanged.
-
Frozen exact-head CI reports successful UT, coverage, SCA and BVT. Performance review found added privilege work confined to LOAD planning; other statements incur bounded type inspection.
Limitations:
-
Real MinIO was unavailable; local protocol validation used an HTTP object fixture. Full local suites and throughput benchmarks were not repeated.
-
An initial diagnostic incorrectly expected binary LOAD preparation to reach authorization; both candidate and base reject it during parsing. The corrected diagnostic passed.
-
Linked issue #28618's body and underlying author-validation receipts were absent from the supplied evidence.
Merge Queue Status
This pull request spent 1 hour 19 minutes 13 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:
issue #28618
What this PR does / why we need it:
Authorize LOAD targets before planning can inspect an Arrow/S3 source, including PREPARE, plan rebuilds and executable EXPLAIN wrappers. Keep the existing plan-level authorization check.
Preserve the session database and the compiler database independently across temporary authorization binding. A LOAD prepared in database A must still write to A after USE B and a sql_mode change triggers replanning; the session remains in B.
Validation on macOS/arm64 with the repository CGo test wrapper: