Repository navigation
fix: reject incomplete exponents and keep owned daemon controls available - #31137
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? |
1bcd685 to
94b4fc1
Compare
94b4fc1 to
6348a40
Compare
|
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: 366707af65e9b7e97ba6474c58e113e009c63237
Assessment: approve
Both fixes are appropriately scoped: malformed dotted exponents use the existing lexer-error path, and locally owned stopping tasks bypass placement admission while runnable and foreign-owned tasks remain gated. No actionable findings.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
Validation:
-
Reviewed the complete delta, affected consumers, lifecycle guards, regression oracles and supplied discussion.
-
Reused frozen-head successful UT, coverage, SCA, shared-build and proxy/pessimistic multi-CN BVT results.
-
Confirmed parser/BVT files match the author-tested rebased revision.
-
Source and evidence audit passed: checks/1793545543920053353-5.json; logs retained and source unchanged.
Limitations:
-
No local Go or BVT rerun; detailed execution logs were not supplied. Focused race repetitions remain author-reported.
-
The original parser revision was unavailable locally, so its historical live-validation results were not independently matched.
|
Queued — the merge queue status continues in this comment ↓. |
🛑 Pull request from fork cannot be queuedDetailsThis pull request comes from a fork, and Mergify needs the author's permission to update its branch. |
|
@Mergifyio refresh |
✅ Pull request refreshed |
🛑 Queue command cancelled |
✅ Merged into
|
…c8adf8a0b2bd604ec4275d0212909856f42be21
What type of PR is this?
Which issue(s) this PR fixes:
What this PR does / why we need it:
SELECT 1.5eandSELECT 1.esilently returned the mantissa with aliase. The MySQL scanner now rejects an invalid exponent immediately after a dotted mantissa, producing syntax error 1064/42000 near the original literal. Valid exponents, digit-leading identifiers such as1e, and valid adjacent or separated aliases retain their behavior.The correction consumes only the invalid exponent introducer and uses the existing lexer error path. It adds no scanning, allocation or state to valid literal handling. Regression coverage checks token boundaries, public parser errors and typed ASTs, incremental parsing, parser reuse, and SQL values/column metadata.
Original-head validation (
1bcd685fd6fa907264d5adcab1417c5e31b307d2) on macOS arm64 with Go 1.27.1:dtype/numeric_literal_exponent.testpassed twice on the same isolated service: 11/11 each, full column metadata enabled, zero failed/ignored/abnormal cases; teardown confirmed between runs.CI refresh on 2026-11-01: rebased the unchanged patch onto official main
e90e05b3a4d959797f276c45dbece14f0f4fdb87, producing commit6348a40cc461f66acb604f19740f17995443a8a6.git range-diffconfirms the patch is identical after rebase.Validation on the rebased commit (macOS arm64, Go 1.27.1):
.agents/skills/mo-dev/scripts/mo-cgo-test -count=1 -timeout=120s -p=2 -json ./pkg/sql/parsers ./pkg/sql/parsers/dialect/mysqlpassed both complete packages, including all three exponent regression roots.go vet -mod=readonlyand configured incremental golangci-lint for both packages passed (0 lint issues); delivery artifact check passed.The previous coverage run failed in the shell fixture
TestEmbeddedPrebuiltPublicationCancellationLatch/test_pidswithPUBLICATION_CANCELLED 90; Coverage merge and CI Required were downstream failures. The corresponding tracking issue is closed. This refresh follows the authorized current-main CI workflow and does not claim that independent fixture defect is fixed.CI also exposed a pre-existing daemon-control admission problem: fresh HAKeeper placement discovery could reject pause/cancel work already owned by the local runner. Locally owned PauseRequested, Paused finalization and CancelRequested tasks now bypass that placement check. Starting/resuming/restarting or taking over foreign-owned tasks still requires admission; durable handler ownership and generation fences are unchanged. This control-path correction is independent of numeric-exponent parsing, and does not claim to fix the underlying HAKeeper availability failure.
Linux/amd64 Go 1.27.1 validation with rebuilt native dependencies:
-short -tags matrixone_test. The two new tests and paused CDC finalization retry test each pass 100 focused race repetitions; the finalization test now covers local ownership while placement admission is denied.TestCDCTargetGenerationContractsOnMOSQL suite passes under race. Formatting, scoped vet and incremental golangci-lint pass. Independent Astra medium design/final review has no unresolved blocker.New-head hosted CI remains pending. Please have the reporter verify #31057 after merge.