Repository navigation
fix(plan): allow INSERT IGNORE into writable external tables - #32750
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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
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: 0ccfff3489bdab57cee5fbca1b5bf97035679ea6
Assessment: approve
The exact-sentinel fallback restores writable external INSERT IGNORE admission while retaining existing rejection and writer semantics. It reuses the established planner and cleanup owners without adding another execution path. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete two-file delta, sentinel producers, legacy planner, prepared-input handling, external writer/error/authorization/cleanup consumers, and all supplied discussion and linked-issue context.
-
Local preflight, source/guard/patch audit, gofmt and receipt reconciliation passed. discussion-assessment.json covers all three keys; validation-manifest.json indexes retained commands, receipts and logs.
-
Frozen current-head CI passed shared build, UT, SCA, coverage and active multi-CN BVT. Fourteen skipped and two neutral checks are excluded from passes.
-
Reused attributed author reports of focused RED/GREEN and owning-package tests, plus final-source real SQL, native prepared reuse, CSV/result comparisons, writer failures, file-policy denials and cleanup.
Limitations:
-
The local focused test stopped before compilation because matching libmo.so prerequisites were absent; it is not counted as a product failure or pass.
-
Raw CI and author-local execution logs were unavailable. No fresh local product-test or real-SQL pass is claimed.
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32512
What this PR does / why we need it:
Allow
INSERT IGNOREinto writable, non-Iceberg external tables to use the existing legacy external-insert path when the modern binder returns its exact external-table sentinel. This restores VALUES, SELECT and prepared forms without changing assignment, warning or external-file writer semantics. Read-only tables, Iceberg DML, ODKU, RETURNING and non-Iceberg OVERWRITE keep their existing rejection paths.The planner regression covers six admitted forms, eight rejection controls and unchanged ordinary external INSERT. No FileService, authorization, error-mapping or native code changes are included.
Validation on the final source based on upstream
bc9b822cd1f5d742b550f8366516fd836936ba70:pkg/sql/planrun throughmo-cgo-testrecorded 24,593 named passes and two skips; skipped cases are excluded from pass claims. The focused admission regression selected 16 named records including its root.STATIC_CHECK_PACKAGES='./...' make static-check-selected— original exit 0, zero issues. The canonical changed/test/reverse-dependency graph crossed the incremental workflow's half-tree threshold (336/510), so explicit full fallback was used. No linter configuration changes or suppressions.The final SQL result supersedes earlier failed private-fixture runs; their original nonzero evidence remains retained. Unchanged owning-package/native/SCA evidence was reused by source and dependency identity. Hosted CI for the new PR is pending.