Repository navigation
fix(json): implement JSON_VALUE RETURNING and response clauses - #28275
VioletQwQ-0 wants to merge 183 commits into
Conversation
…28275-feature-delivery-20261111
…28275-foundation-delivery-20261111
…28275-feature-delivery-20261111
|
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: b9031e8fa074e6e0aef51cd6960e40cba049e3da
Assessment: request_changes
Distinct overloads and shared bounded validation are coherent reuse. One P2 performance/design issue remains: legacy lookup-cost acceptance is unresolved. Released-data upgrade evidence is credited.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
- P2
pkg/sql/plan/function/func_builtin_json.go:3567: Repeated legacy JSON_VALUE(doc, '$.keep') calls on admitted binary JSON containing a large unselected subtree.
Impact: Every invocation validates the complete document before extraction, adding document-sized work to existing queries. Resolve the retained-cost decision for this workload or reduce repeated validation through proven ownership while preserving malformed-descendant rejection.
Evidence: This replaces DecodeJson with decodeJSONValueStoredAdmitted → ValidateStoredJSONDocument. Comment 6741062257 reports five-pair medians of 11.814× for the 4096-element lookup and 15.022× for warm expression evaluation. Eight key source/benchmark files match both measured arms. Faster admission and mutable-alias safety are credited, but design lines 165–177 and the author report still leave cost acceptance open.
Validation:
-
Read the design, complete discussion and linked issue; reconciled all 151 discussion keys and inventoried 54 changed paths.
-
Receipt-matched static audit passed: clean frozen source, formatting, source identities, five harness hashes and 22 paired timing calculations. Receipt: checks/1794407409629435902-4.json.
-
Frozen CI reports 14 successful, 14 skipped and 2 neutral checks, including successful UT, SCA, active BVT and CI Required.
-
Credited author-reported v4.2.8 shutdown-upgrade, restart and physical-restore evidence within its stated scope.
Limitations:
-
No fresh local runtime tests or benchmarks; private author receipts and raw CI logs were unavailable.
-
Timings are historical component measurements; broader shared dependencies changed.
-
Detailed remaining implementation, generated-parser, test/BVT and lifecycle approval is deferred under the failed design/cost gate.
# Conflicts: # pkg/sql/colexec/evalExpression.go # pkg/sql/colexec/evalExpressionReset.go # pkg/sql/colexec/evalProjection.go # pkg/sql/colexec/table_scan/local_domain.go # pkg/sql/colexec/table_scan/table_scan.go # pkg/sql/colexec/table_scan/types.go
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: 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: 19c61dda90d0bf2c407898e246c08b0b50469b20
Assessment: request_changes
JSON_VALUE warnings bypass execution-attempt sinks and are collapsed by constant folding. The structured lowering and immutable-reader integration reuse existing owners; earlier concerns were reconciled against current policy and scoped evidence.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
-
P2
pkg/sql/plan/function/func_json_value.go:543: A conversion or width failure selects NULL/DEFAULT ON ERROR while Process.WarningSink holds an attempt collector or speculative probe.
Impact: GetSession bypasses the selected diagnostic owner and publishes warnings immediately to the session. Discarding the attempt or probe cannot discard those effects. Use proc.GetWarningSink(), as existing conversion helpers do.
Evidence: TestReviewJSONValueHonorsWarningSink observed sink warned=false and session warnings=1; the existing calendar-helper control honored the sink. Process.GetWarningSink and warningAttempt.bindProcess/finish establish this ownership contract. See warning-probes-retry.stdout.log and the matching exit-1 receipt in review-validation.json. -
P2
pkg/sql/plan/function/list_builtIn.go:2185: The clause-bearing overload processes constant arguments over multiple rows, such as JSON_VALUE('"bad"', '$' RETURNING SIGNED NULL ON ERROR).
Impact: Without rowScopedDiagnostics, folding evaluates the warning-producing call once and caches its result. Warning counts therefore depend on folding and batch shape. Declare diagnostic effects and use the existing probe to fold only effect-free calls, together with the sink correction.
Evidence: TestReviewJSONValueConstantDiagnosticCardinality observed one warning for a three-row RunFunctionDirectly result, versus three warnings from identical direct-kernel inputs. Existing function/expression folding uses rowScopedDiagnostics to preserve these effects; compat_warning_folding_test.go establishes the per-row oracle. See warning-probes-retry.stdout.log.
Validation:
-
Reviewed all 87 changed paths, linked issue context and 178 discussion entries; saved the complete discussion assessment.
-
Isolation preflight and fresh native build passed. Focused tests passed in parser, types, function, colexec, table_scan and plan; two standalone Merge-publication tests passed. Empty selections were excluded.
-
Regenerated mysql_sql.go and verified equality after invocation/path normalization.
-
Both retained warning probes failed at the described assertions. An initial build timeout was superseded by the completed retry.
-
Artifact audit passed; review-validation.json matches commands, source fingerprints, exits and retained logs. Source remained unchanged.
Limitations:
-
Warning reproductions exercised function/executor integration; no fresh SQL-server or race run was performed.
-
Release-upgrade and performance reports were reused within their identified revision and scope limits, without fresh measurements of this head. Pending or skipped CI contexts were not counted as passes.
|
Follow-up to the two warning findings in the review of
The targeted tests, affected packages, scoped race, 165/165 canonical JSON_VALUE BVT and 8/8 FLOAT BVT, and configured lint passed locally. New-head CI is separate. The performance gate remains open: the original-base cold SQL worst is 1.10167x and the filtered one-path case is 1.17248x in the first five pairs, with a reversed-order confirmation pending; the PR description includes the data and limitations. This reply does not claim review approval or QA completion. |
…28275-after-32546-20261113
…28275-after-32546-20261113
|
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: a654d385239023a7974d1cc9d44707d40de23cad
Assessment: request_changes
Structured lowering and immutable-reader integration reuse existing owners, and both warning findings are resolved. One P2 design/performance acceptance issue remains.
Model: gpt-6.1-sol / max
Session: 01a1e395-a6d9-7ad1-bf20-81f1c6210100 · slot 2 · generation 0
- P2
docs/design/json_value_returning_response_contract.md:158: The design requires five-pair end-to-end SQL measurements within 1.10x the original baseline, but current-tree evidence and the latest author disposition leave that criterion open.
Impact: Close the cost/scope decision using the supplied measurements and current-main controls, or validate a safe revision against the chosen criterion. Preserve complete validation and memory accounting. This is an unmet design/acceptance contract, not a demonstrated production regression or a request for another broad benchmark campaign.
Evidence: HEAD matches the measured f062d2f tree. Comment 4589045718 yields filtered one/two-path medians of 1.128092x/1.110257x versus original; the cold-matrix worst is a borderline 1.101942x. Current-main ratios are smaller, so the whole difference cannot be attributed to this PR. Comment 4589471065 confirms the scoped trial was reverted and acceptance remains open. No later accepted tradeoff or narrowed criterion supersedes design lines 158–162. Calculations and source qualification are retained in benchmark-evidence.json and change-map.json.
Validation:
-
Mapped all 88 paths: 74 final files match the latest supplied review and five PR-owned deltas are equivalent. Inspected nine material paths and five integrations directly.
-
Static audit passed: clean frozen source, patch identity, whitespace, gofmt for 82 Go files, warning ownership/effect wiring and 165 canonical statement echoes. Receipt checks/1794876493453823266-2.json, exit 0.
-
Independently calculated supplied benchmark ratios. Receipt checks/1794876154623814098-2.json, exit 0; no fresh benchmark execution claimed.
-
Reconciled all 188 discussion keys and linked issue context. Credited successful frozen-head build, UT, SCA, coverage and enabled BVT metadata.
-
Final artifact and receipt reconciliation passed: checks/1794876633532533532-2.json. Records are retained in validation-audit.json.
Limitations:
-
Remaining exhaustive implementation, generated-parser and lifecycle approval is deferred under the repository’s design-first rule.
-
No fresh Go/CGo, race, SQL-service or performance tests ran. Private author receipts and raw CI logs were unavailable.
-
Historical large-slowdown, upgrade and wire-metadata reports are not presented as newly demonstrated current-head defects.
iamlinjunhong
left a comment
There was a problem hiding this comment.
Review of exact head a654d385239023a7974d1cc9d44707d40de23cad against f491aaab4519b29313c5747d3ce3b3f84e865c71: APPROVE, with one answered, nonblocking finding. No current P0/P1 was confirmed.
[P2] Performance acceptance remains open (docs/design/json_value_returning_response_contract.md:158–162). For the filtered 64-document queries with one/two JSON_VALUE paths, the supplied five-pair samples yield candidate/original medians of 1.128092x / 1.110257x, exceeding the documented 1.10x SQL target. I independently recalculated these ratios and verified that this head and measured f062d2f0 have the identical tree 3ce49f99401257c489466380128788aeb020db5f. Candidate/current-main medians are 1.068335x / 1.064625x; the entire original-baseline difference therefore cannot be attributed to this patch. Close the documented acceptance/tradeoff decision using the existing evidence; this finding does not require another broad benchmark campaign.
The author explicitly answered the previous lookup-cost finding in the original thread, supplied current-tree measurements, and confirmed the experiment was reverted and acceptance remains open. The qualified immutable-reader path now shares admission across lookups; arbitrary mutable inputs retain defensive validation. Historical large-slowdown figures are not treated as proof of a current production blocker. Under this review's event rule, the answered remaining P2 permits APPROVE; this does not declare the performance target accepted.
Previous semantic-key reuse and CHAR formatting findings have corresponding fixes, regression coverage and explicit author replies. Clause-bearing calls remain distinct from legacy calls. Earlier temporal, NULL-path, numeric and grammar findings have corresponding repairs; the historical feature-specific protocol requests are superseded by the repository's shutdown-only upgrade policy. The later warning findings are repaired through GetWarningSink and row-scoped diagnostics, with an explicit author reply.
Supplied CI metadata: 30 completed checks: 14 success, 14 skipped, 2 neutral. They have not all passed; none is failed or pending, and CI Required is successful. Skipped checks are not validation passes.
Validation: source/call-chain inspection, historical-feedback reconciliation, supplied-sample arithmetic, git diff --check, and the read-only PR artifact check. Both checks passed. Fresh Go/CGo, race, SQL-service and performance execution was skipped because the retained finding is established by source-identical supplied measurements and does not require new runtime reproduction. Supplied CI and author runtime reports are reused within their stated limits; independent QA and exhaustive lifecycle validation are not claimed. No source or GitHub state was changed.
aunjgr
left a comment
There was a problem hiding this comment.
Re-review of a654d385239023a7974d1cc9d44707d40de23cad.
The former JSON_VALUE-specific peer-floor requirement is obsolete under shutdown-only upgrades and has been removed in the implementation; I am dropping that mixed-version objection rather than asking for another feature epoch.
The current revised producer/reader ownership design and its supported-release persistence acceptance remain unclosed. The candidate design itself separates those decisions from the implemented reader foundation and same-head CI. The recorded end-to-end SQL <=1.10x acceptance gate is also not established; reverting the unqualified scoped-filter experiment does not establish it.
Some recorded original-baseline deltas include inherited integration-main effects. Please close attribution/rebaseline or obtain an explicit acceptance disposition; I am not asserting that every measured slowdown was introduced by this PR. Current tests and green CI remain useful functional evidence, not approval of the unresolved design/performance contract. No rolling-upgrade, mixed-binary or downgrade matrix is requested.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #28037
What this PR does / why we need it:
Current integration and performance status —
a654d385The scoped-filter experiment was reverted: its metadata accounting/lifetime was not established and the original performance gate was not met. The current source tree is identical to
f062d2f0, preserving the warning fixes, mainf491aaab, and the JSON_VALUE/CRC32 persisted-expression regression.Ubuntu BVT passed (165/165 plus FLOAT 8/8), as did SQL mapping, prepared, reader attribution, planner tests and configured lint. On this tree, filtered 1/2-path medians were 1.128x/1.110x versus original; cold SQL worst was 1.102x (borderline). The 64-row results were 0.994x/1.015x (seven-argument uses a two-argument proxy). The 1.10x performance gate remains open. Samples and reverted experiment.
CI passed on rerun. Attempt 1: four DDL/cleanup timeouts; isolated main/candidate controls passed. Earlier UT had a frontend SIGSEGV. Both failures remain unattributed; review and QA are pending.
Historical integration and performance status —
b83281daThis update supersedes the earlier head-specific status sections below. PR remains Ready, but performance acceptance and reviewer/QA decisions are not complete.
8e8708a8without rewriting PR history. The fileservice conflict follows main's Revert "perf(fileservice): keep IVF-Flat entries objects in the index-file cache (#32697)" #32809 revert; the reverted range-read test was not restored. The shared JSON reader foundation remains in merged feat(json): publish immutable validated read owners #32546.id % 2 = 0filter. Instrumented and uninstrumented results matched (64/32 rows). Each query performed 64 full admission validations, opened one ObjectIO cache reader, shared it among all paths, and made no private snapshot. The filter used one 32-row selection. The ordinary output column was also materialized once: descriptor/payload 1,536/24,896 bytes unfiltered and 768/12,448 bytes filtered, independently of path count. The scan contract can have other consumers of that column, so this observation alone does not justify exposing the sealed backing as a mutable Vector.4df268ebinary gave: full cold SQL worst 1.10167x (wide/16/2, five ratios 1.0172, 1.1017, 1.1048, 1.1143, 1.0624); additional filteredmixed/16/11.17248x (ratios 1.3767, 1.0535, 1.1725, 1.0671, 1.1750) andmixed/16/21.1104x. Thus the 1.10x SQL gate is not established. The filtered/one-path case is 1.0488x versus integration main; main versus original is 1.0794x by paired median. A reversed-order five-pair confirmation measured filtered 1/2-path medians of 1.15097x / 1.15705x against original; the same cases were 1.00313x / 1.01739x against integration main, and main/original were 1.11805x / 1.13727x. These filtered cases exceed the target in both runs, with the code-level main/base cause not yet established. Wide/16/2 measured 1.04687x in the targeted run; because its suite context differs, the full-matrix borderline remains unresolved. All per-pair measurements are retained.TestJSONValueFunctionalIndexCompositionnative-release failure remains unattributed; its crashing executable was not retained. Subsequent short-path native controls passed before/after versions once each but do not explain or erase that failure. Reviewer and QA disposition is still required before merge.Historical integration update — 2026-11-16 (CI UT cleanup)
Head
19c61dda90d0bf2c407898e246c08b0b50469b20retains the previous PR history and fixes the failure in UT run 43835837136. The fileservice range-read test helper returned an entry without releasing its owningIOVector; an allocator finalizer later detected the unfreed 220-byte read buffer. The helper and production fileservice allocator match the merged main base. The helper now registersIOVector.Releasebefore reading, so the data stays valid through each test and is released on success or assertion failure. This is test-only; product reader, execution and allocation logic are unchanged.Local validation: a temporary allocation-counting probe reproduced one outstanding buffer before the fix and zero after test cleanup; four range-read tests each passed three times under the checked allocator. The full
fileservicepackage, focused range-read race test, configured package lint, gofmt andgit diff --checkpassed on macOS arm64. The probe was test-only and is not part of the PR. No new SQL/BVT or performance run is attributed to this test-only change.CI and review: CI run 43853375511 passed on
19c61dda90d0bf2c407898e246c08b0b50469b20, including UT, SCA, shared build, coverage, both multi-CN BVT jobs andCI Required. The four blocking reviewer requests and ten answered historical threads remain open for reviewer confirmation. Shutdown-only rollout, the separate unattributed native-release incident and deployment QA retain their earlier documented scope.Previous integration update — 2026-11-16 (historical:
ce9b6f0SCA repair)Head
ce9b6f06b7240c6dc5b92d2b19fdae511c30a81cpreserves the previous PR head and merges main7fcd9bd. The failed SCA run reported two unused fields in main's embedded function state; the integration had accidentally declared two outer fields with the same names. Commit1dde4c3removes the shadowing declarations so existing flow-control accesses use the single embedded state. The ownership foundation remains absent from this PR's diff against this base.Local validation: the complete
colexecpackage and full configured package lint passed for the fix before the main merge. After the merge,objectio, focused flow-control and JSON-reader race tests, JSON source/prepared/index/persistence SQL tests, and the full configuredcolexeclint passed.git diff --checkpassed. These are local results; new-head CI, independent review and deployment QA remain separate.Performance evidence: the measurements immediately below were taken on
fc8397d, not this head. The SCA repair changes the executor's field layout, and the merge adds main's ObjectIO writer changes; there is no fresh paired measurement force9b6f0. The previous ratios remain historical evidence rather than exact-head performance results. Full validation and ordinary mutable-input fallback remain in place.Review and rollout at
ce9b6f0: this PR was Draft. The four blocking reviewers have outstanding rereview requests; the ten historical threads remain open for their decisions. Shutdown-only rollout, the unresolved native-release incident and deployment QA retain their documented limits.Previous integration update — 2026-11-16 (historical:
fc8397d)Head
fc8397d093bea44389efe108fcaca959962be428preserves1b7dc0c, fixes the two observed CI test failures in419cfdea, and normally merges main49d552e(#32492 dictionary selection and earlier main changes). JSON reader bindings and dictionary parameter normalization are composed; scan and local-domain selection apply the same row mapping to the JSON reader. Unsupported dictionary capability remains on the conservative path.Local validation: the original type-switch and restart-fixture failures were reproduced before the fix. The ordered shared-fixture plus full-cluster restart/restore test and the type-switch/JSON cast tests passed after it. Owning packages
vector,objectio,colexec,projection,table_scanandfunctionpassed; focused race, four real SQL source/prepared/index/persistence tests, vet, incremental configured lint, formatting and diff checks passed. Canonical JSON_VALUE BVT passed 153/153, plus FLOAT 8/8. The first BVT attempt failed before SQL because its old JRE path was unavailable; the successful run used local Java 17. These are local results; new-head CI and deployed QA are separate.Merged-head Ubuntu performance: against the original
4df268ebaseline, five alternating pairs produced worst paired medians 1.0808x SQL, 0.9682x legacy 64-row, and 1.0042x clause 64-row, within the original 1.10x / 1.20x targets. The 4096-element warm reader was 0.8122x; the ordinary mutable-input fallback was 9.6377x. All 30 SQL and each 30 projection scenarios have five matched pairs. SQL includes execution, admission, scan, copies and result release; projection snapshots are prepared outside the timed loop. Both projection fixtures verify an actual 128 MiB query cap and unchanged accounting. Source tree29bc0d3ea76b0eecb00002d713c6307792276ba5matchesfc8397d. Of 50 timed processes none reported major faults; two system-wide page-ins occurred in one SQL candidate window with no established process attribution. Full-scan/copy counters were not remeasured on this revision. Raw samples are retained locally, not publicly attached.Historical gates at
fc8397d: SCA failed on the shadowed fields addressed above. The four existing blocking reviewers have outstanding review requests; the ten old threads remain open for reviewer decisions. The foundation approval does not approve this feature or its shutdown-only rollout. The earlier native-release failure remains unattributed, and deployment QA is separate.Previous integration update — 2026-11-13 (historical:
1b7dc0c)Current head:
1b7dc0ce939d5876e205f7342b0d973df085999f. A normal merge adds main6c74579todc0401f, retaining the original PR headb9031e8and the locally validated feature delivery history. Main includes the merged ownership foundation #32546 (squash commitff19bdc). All files introduced or changed by that foundation match current main; this PR's 84 changed files are the SQL feature and its reader consumption. The raw feature diff before and after the latest main merge is identical (SHA-2566b0b2ef63264aad04c89bb534a7e8427a64ce33d5cdbf56ea8415a98b37dd8ac). New-head CI must be read separately.Validation on
1b7dc0c(macOS arm64, Go 1.27.1): canonical mo-tester comparisons passedfunc_json_value.test153/153 andfunc_json_value_float.sql8/8, with zero failed, ignored or abnormal cases. The task-local overlay selects only the BVT driver and does not change canonical cases or expected outputs. Nine focused contract tests passed across function, colexec, table scan and Vector, covering legacy/clause text, NULL/path order, masked rows, allocation failures, output ownership and reader release. Five actual SQL tests passed for source publication, functional indexes, persisted owners, binary prepared statements and real two-CN received documents. Six file-service read/retirement/cancellation tests passed with-raceafter the main cache-accounting change. Earlier complete function, parser/planner, four-package scoped race, configured incremental golangci-lint, repository-pinned molint and vet results ondc0401fare retained for the byte-identical feature diff; they are not reported as fresh executions on1b7dc0c. Local evidence is not new-head CI or deployed QA.Final-head paired Ubuntu performance (
1b7dc0c): Five alternating AB/BA pairs against original main4df268eshow worst per-case paired-median ratios of 1.0479x SQL, 1.0121x legacy 64-row, and 1.0180x clause 64-row, below the original 1.10x SQL / 1.20x projection targets. The 4096-element resident one-path warm lookup was 0.8296x; the defensive ordinary mutable-input path was 9.8019x. These are independent dimensions, not an assertion that the mutable fallback became fast.The candidate tree is
7d944dcc126345d12a37bd01cf2446239a9f2ac3(equal to head1b7dc0c); the baseline source snapshot isdc4a5455e1bcdaa33b234519d6ae6d982ebabfe7for4df268e. Builds used Go 1.27.1 linux/amd64, GOAMD64=v3, GOEXPERIMENT=simd, and byte-identical native libraries. Each group had five alternating pairs, 200 ms per sample and a single pinned CPU; the same integer, string, mixed, wide and deep inputs, 16/4096 sizes and 1/2/8 paths were used on both arms. Cold SQL includes admission, scan, copying, execution and output release. The 64-row benchmark builds its snapshot before timing; reader binding/windowing and result checks still run as in the harness. Both projection arms use the same test-only fixture to set the process limit before generation creation; a single-case probe asserted the generation did not already exist and that its actual query cap was 134217728 bytes on both arms. Full accounting and correctness assertions remained enabled. This fixture promotes the generation before the measured region on both arms; it does not establish cold preparation cost, which is measured by SQL.All 50 timed processes completed; 30/30 SQL and 30/30 cases for each projection contract had five matched pairs, with nine interleaved SQL rows recovered. The measured process peak RSS was at most 477680 KiB, and reported major faults totalled zero. One system-wide page-in occurred during SQL pair 3 candidate; there is no evidence it belonged to the benchmark process. It is recorded rather than treated as an automatic disqualification. Full scan/copy counters were not remeasured on this head; earlier counters remain historical evidence. Five-pair timing is local benchmark evidence, not CI, independent reviewer approval, deployed QA or production performance.
All measured scenario ratios (paired medians)
The benchmark fixture SHA-256 is
f8e21f513348df9b42d998945c3baeb1bf30ecdd20301e8b855a5371d63ea976; candidate and baseline projection binaries were2f4c6d1d29c45b6de178e33de919faa8ff5c33ec66b1531ceb197325e0e3e742anda7f11872a229f5a61e6395f59c65d478ffee4dd031234aeec4a8d95f18ea1ede. Complete raw logs and five individual ratios are retained locally and are not publicly attached. Earlier performance reports and their original identities remain available here.Current-head CI: run 43361183726 failed UT and coverage. UT reported
TestJSONValuePersistedExpressionsSurviveRestart(another complete test cluster active) andTestTypeSwitchFamilies(missing float types incastToJSONRows); these require separate investigation, not a performance conclusion. Coverage and the required aggregate also failed. Formal changes-requested reviews and the ten unresolved threads remain open.Review map: legacy width and mixed-form GROUP BY/HAVING use the legacy reader, semantic normalization and 512/513 SQL controls.
RETURNING CHARis covered by parse/format/reparse tests and SQL persisted-owner cases. Temporal SQL, NaN DEFAULT, integer DEFAULT and unused DEFAULT validation have corresponding coverage.All ten previously unresolved inline threads have individual replies at
dc0401f; the feature diff they discuss is unchanged here. They remain open for reviewer confirmation, including the historical MORPC requests and present shutdown-only policy. #32546 approved the ownership foundation, not this feature's independent design or rollout. Mixed-running versions, old-node rejoin and downgrade remain unsupported. Earlier supported-release upgrade/restore evidence retains its original scope; deployment QA and the unclassified historical native-release failure remain separate gates.Previous integration update at dc0401f (historical)
Historical integration update — 2026-11-13
Current head:
dc0401f91e535648b3aff61c4b51b22499a0a091. It preserves the previous PR headb9031e8and merges the feature delivery treeed02517with maina626dd0, which includes the merged ownership foundation #32546 (squash commitff19bdc). The foundation files in this tree match that main version; this PR carries the SQL feature and its reader consumption. Main advanced one commit affecting fileservice disk-cache accounting and IVF indexes during validation; a local merge preview was clean. New-head CI has started and is not yet a pass.Validation on
dc0401f(macOS arm64, Go 1.27.1): the canonical mo-tester comparison passedfunc_json_value.test153/153 andfunc_json_value_float.sql8/8, with no ignored or abnormal cases. The task-local overlay selected the BVT driver while leaving the canonical cases and expected outputs unchanged. JSON_VALUE/ROW parser, planner and function tests, the complete function package, reader and publication tests, and the two-CN receive test passed. Actual source, functional-index, persisted-publication and binary-prepared SQL tests passed. Scoped race across Vector, ObjectIO, colexec and function passed; configured incremental golangci-lint, repository-pinned molint, vet andgit diff --checkpassed. These are local results, not CI or deployed QA.Performance evidence is historical: the five-pair Ubuntu SQL result on
ed02517versus4df268ewas 1.0617x in the worst measured case. Earlierb16ffdfruns reported worst paired medians of 1.0644x / 1.0162x for legacy / clause 64-row projections and 0.8299x for warm lookup; the mutable-input fallback was 9.7308x. Method, per-scenario results and limitations are available to reviewers. The later foundation change for transient physical-memory admission affects preparation, so these are not a fresh performance measurement ofdc0401f. The prior Ubuntu performance workspace currently has insufficient free home-volume space for its original admission guard; affected performance must be remeasured before treating the new combination as accepted.Review map for this head:
RETURNING CHARparse/format/reparse and persisted uses: parser regression and SQL/view/default/generated-column cases.Review and compatibility: the ownership foundation's D1 approval does not approve this SQL feature. Existing change requests and outdated threads still require review of the present implementation and compatibility decision. The candidate follows the shutdown-upgrade contract: mixed-running versions, old-node rejoin and downgrade are unsupported; unrelated feature protocol floors remain in force. Earlier supported-release upgrade/restore evidence retains its original version scope. Independent feature-design review, current-head CI, deployment QA and the unclassified earlier native-release failure remain separate gates; the native failure has not been attributed to this change or resolved.
The dated material below is preserved as historical evidence. Any older use of “current” refers to the revision named in that section, not the head above.
Historical main-conflict update — 2026-10-29
Head
370300b5bec9bcd61dd94f327e0d4679f24ab380merges source7d1e25d875cf1e184045b8eed16819fa17ff291bwith main2fa5b0c945499475e1f2e7c3035a6169f9aa4ce8. Both JSON_VALUE's checker and main's BIT logical-operator checkers are retained. This is the current head; older head claims below are historical.On macOS arm64, focused JSON_VALUE, BIT logical and prepared-pagination function/planner/execution tests and incremental lint passed. Normal SQL comparison passed JSON_VALUE 153/153 twice and BIT logical operators 34/34 twice, with owned clusters closed. These validate the merge composition; current-head CI, outstanding review evidence and deployment QA remain separate.
Historical conflict-resolution update — 2026-10-29
Head
7d1e25d875cf1e184045b8eed16819fa17ff291bis a normal merge of source001825d6feaa345fc3bf6cea108030f333d46943with main37a9d62e6428cc0ce0956538f21a0e05d18f2291. The conflicting generated MySQL parser was regenerated from the merged grammar, retaining both JSON_VALUE and main's BINARY-prefix changes. This supersedes current-head and protocol-allocation descriptions in the historical entries below.On macOS arm64, the parser package, focused JSON_VALUE planner/execution tests and incremental parser lint passed. Normal comparison of the exact JSON_VALUE case passed 153/153 twice and main's JSON_VALUE window case passed 33/33 twice; each test-owned cluster closed. These checks cover the merge composition, not the complete PR acceptance.
The previous head's failing CI findings require fresh assessment on this new head; new-head CI is pending. JSON_VALUE malformed-input correctness and its performance trade-off, upgrade/restore validation, design review and deployment QA remain separate open acceptance items. No review or issue closure is claimed.
Historical scoped maintenance — 2026-10-26
Published head
6288f5fcc0d76a41fc14d83fd29bf50c7f063d6b, treeaa1330dbf7e70a6719dc227559ddb98eaf1ca147: normal merge of source25aaa8b12b3d1e357ca11d47e891c0f230f043e7and validated main861a2c4cb68961d8b6b01f18e0aa6ac52a3a505f. This supersedes earlier current-head/capability claims below; old evidence remains bound to its original revision.Preserve main's129 JSON ELT/text,130 incomplete-temporal,131 weighted-percentile and132 decimal/float capabilities. The isolated seven-argument JSON_VALUE contract moves to provisional133 across binder, persisted read/authoring, cache/prepared plans, placement, destination, actual stream and receiver. Float-only remains132; mixed float/JSON_VALUE uses133 in either order. Main132 rejects JSON_VALUE before pipeline work.133 is not a final global reservation or an interoperability guarantee with independent unmerged branches. The revision11 compatibility amendment still requires independent immutable approval.
Current-content validation, Go1.27.1 / macOS arm64:
test/distributed/cases/function/func_json_value.test149/149 andfunc_json_value_float.sql8/8 each passed twice on the same SQL/ISCP-ready owned instance:314 normal comparisons, zero failed/ignored/abnormal. Original inputs/oracles, teardown before fallback, fixture/listener closure and owned-process termination verified. This is not deployed metadata, multi-CN, upgrade, recovery or performance acceptance.QA required: yes. The historical17.818x whole-document validation cost still needs safe ownership/provenance or explicit independent measured-cost acceptance; malformed unselected-descendant rejection is retained. Independent approval of the exact revision11 compatibility amendment, actual predecessor-data shutdown upgrade, durable-floor restart/restore and deployed QA remain open. The increment does not fix or certify the external coverage admission wait. New-head CI must be checked separately; earlier head results are superseded. No original CR is automatically resolved, no incomplete reviewer is re-requested, and issue#28037 is not closed.
Historical delivery evidence (not current acceptance)
Earlier descriptions and revision-bound evidence
Scoped maintenance update (2026-10-22)
Published head:
5d01c55cbbcec968c063e805667da6d5cdcfc5f1; validated merge base:060cb430e9ff59e60dc7bdade05758d343516acb; validated content tree:a2d6115a1591a4a5a960f08232426d6dbf5f0d9a. This ordinary merge resolves the real main conflicts, preserves main's existing MORPC129 JSON contracts, assigns this branch's JSON_VALUE contract130, and propagates its minimum through the existing actual-stream admission owner. A peer advertising129 is rejected before PipelineMessage work;130 is admitted. Legacy/no-feature requests and independently encoded floors retain their contracts. The parser was genuinely regenerated from the merged grammar; no parser table was hand-edited.Local validation on the exact candidate content: pre-fix detecting control failed at the missing130 minimum; final named protocol controls and all13 selected owning packages passed, with3 existing unrelated skips explicitly retained. The3 binary-prepared/temporal, functional-index-composition and persisted-publication SQL consumers passed. Incremental vet, configured lint, formatting and diff checks passed. The unchanged canonical JSON_VALUE case compared149/149 and its FLOAT companion8/8, twice on the same owned single-CN fixture through normal mo-tester comparison; failed/ignored/abnormal counts were0 in all4 runs. SQL/ISCP readiness, teardown before fallback cleanup, fixture/listener closure and absence of owned processes were verified. These are local data/error results, not deployed metadata, multi-CN or performance acceptance. Raw logs and failed setup/adapter attempts are retained in the maintenance evidence bundle.
Remaining gates are unchanged: the historical17.818x legacy recursive-validation cost requires safe ownership/provenance or explicit independent cost acceptance; immutable revision9 and the final protocol allocation still require independent approval. Published-head CI, formal reviewer approval and QA remain separate and pending. This update does not resolve original CR threads, request re-review, claim the full implementation approved, or close issue#28037. QA Decision remains yes; References#28037, not Fixes.
Earlier evidence (historical)
Historical verified conflict-maintenance increment — 2026-10-22
Normal merge
6486d2f7abf18fef028f62052b518106536f4aff(treebccdc0f6611d20ed5757553a7e510d25de2d5ac5) preserves sourcec63b88d3c9346764cf38d70e7e7f2fda87ee38b7and fixed actual main6cbe375b49696021d72778baa292a66287f080bd. Main retains protocol125 LOAD,126 VIEWS,127 IndexSearch and128 JSON/numeric meanings; seven-argument JSON_VALUE uses provisional129 consistently. This is a real-conflict repair, not a BEHIND-only sync or compatibility proof between independent unmerged branches.Local patch validation: matching native/provenance, targeted compiler/planner/parser/persisted/public SQL checks, all13 owning packages and14-package-directory incremental vet/configured lint PASS. Canonical normal comparison: JSON_VALUE149/149 twice and FLOAT8/8 twice (314/314); four same-instance cleanup assertions PASS. Original canonical inputs/oracles are unchanged. A main-added checkOption argument was supplied to one existing fixture; its original assertions remain.
Still open: historical17.818x legacy-cost acceptance, independent approval of exact revision9/final allocation, whole-PR/deployed QA and new-head required CI. This increment does not satisfy those gates or automatically re-request reviewers. All evidence below remains historical at its explicitly named producer/head/base.
Earlier maintenance evidence (historical)
Verified conflict-maintenance increment — 2026-10-20
Normal merge
c63b88d3c9346764cf38d70e7e7f2fda87ee38b7(tree5291619b498558b2d946a0df74642bbb449e831a) has parents55ec9513d03247ef81100385e2e0de3638907839and actual main743e749a1e33d6c845bb73999e8c82d297a2b657. This is a genuine conflict repair, not a BEHIND-only catch-up. Main keeps v123 nonblocking row-lock admission and v124 fractional TIMESTAMPADD SECOND. The seven-argument JSON_VALUE contract now uses provisional v125 consistently across feature detection, binder/placement, sender/receiver, persisted read/authoring admission and prepared/cache regressions. The actual predecessor v124 rejects the new contract while retaining its own semantics. Allocation remains provisional; no maintainer approval or compatibility between independent unmerged branches is inferred.Current-candidate validation: Go1.27.1, Darwin/arm64, repository native CGo provenance/loader wrapper. Focused boundary and owning-package checks, persisted SQL integration, applicable incremental static checks, gofmt, target-relative diff-check, exact conflict self-review and capability-collision preflight are recorded in the current maintenance evidence. Canonical func_json_value.test and func_json_value_float.sql each completed two normal result comparisons with zero failed/ignored/abnormal cases and verified teardown. No canonical input or expected result was rewritten; the external Go overlay is not part of this commit. The root independently checked actual artifacts and unchanged candidate/base binding before publication. Raw command/exit receipts and limitations: heartbeat-20261020-0744.DG1FXV/{worker-28275/handback.md,28275-root-audit.json,worker-28275/logs/,worker-28275/bvt-harness/28275-bvt-result.json,28275-publication.json}.
This publishes only the validated conflict/capability increment. Ready and outstanding CHANGES_REQUESTED remain unchanged; no finding is resolved and no re-review requested. The measured legacy whole-document validation cost still requires safe ownership/provenance or explicit maintainer cost acceptance. Independent approval of immutable revision9 and final allocation, accepted shutdown-upgrade/recovery obligations and deployed QA remain separate gates. The accepted rollout scope is not expanded into mixed-running-version or old-CN rejoin requirements. Integer-threshold/component/BVT checks are not actual predecessor-binary or deployed acceptance.
QA required: yes. Issue #28037 remains open. Old source-head CI is superseded; new-head required CI must be checked independently.
Historical delivery evidence
Everything below remains historical at its explicitly named source/base/producer. Earlier current headings, protocol allocations, CI and acceptance claims do not override the verified increment above.
Earlier delivery records and feature description
Current CI fixture increment — 2026-10-16
Published ordinary commit
98b8e43a518dc7e9033c5446addd720ccef9c813, parent05f419d709aba2a41d15a0e45fce1d1bb421abe5. The four positive ReadFileOffset boundary fixture groups now bind their explicit SQL-file test caller identity before file admission. Production security policy, parsing behavior, negative authorization assertions and the public JSON_VALUE SQL/result pair are unchanged. No base synchronization or history rewrite was performed.Validation: focused four fixture groups, full owning external package, and missing/denied SQL-file policy controls all passed with native CGo enabled on Go1.27.1 darwin/arm64; root go vet and configured incremental golangci-lint also passed. BVT is not applicable to this test-only increment; this does not claim complete PR validation, Linux required CI, deployment QA, design approval or performance acceptance. The new head owns new CI and older check results are not reused as green.
Ready and CHANGES_REQUESTED are preserved. Original reviewer-specific unresolved evidence remains open; the accepted shutdown-upgrade scope is not expanded into a new mixed-running or old-node-rejoin prerequisite. No thread resolution, Addressed/Fixed claim or reviewer request is made by this increment. QA required: yes; related issue #28037 is not closed. Earlier entries below are historical, head-bound records.
Current conflict-maintenance increment — 2026-10-16
Published ordinary merge
05f419d709aba2a41d15a0e45fce1d1bb421abe5, parentsd046a501b915f79058a226fbb9119a258ee3157cand pinned actual main47b9690d7caec56b589fdefaf0684177412cffb2, validated tree10f33d10c1b4a34e5f1c9fdf64a23af1dc27daa1. The trigger was a real merge conflict, not simply target-branch advancement. No history rewrite or protected-branch push.The sole textual conflict was the generated MySQL parser. Official goyacc generation retains both JSON_VALUE and upstream DROP CHECK/DROP CONSTRAINT syntax. All main-only blobs match the pinned target;52 feature paths match the previous source, and the seven composed feature paths were separately inspected. Main117 remains unchanged; JSON_VALUE118 is provisional, not an approved allocation among other open proposals.
Candidate-specific developer evidence on Go1.27.1/darwin-arm64 with locally rebuilt matching native dependencies: parser/PB/AST packages PASS; focused JSON_VALUE runtime, planner, protocol/predecessor, frontend cache/publication and three SQL-integration tests PASS; complete function/plan/compile/frontend owning packages PASS. All14 changed-closure packages pass standard vet and configured golangci-lint2.14. Optional locked molint only reports six selected packages, not full closure. Formatting, deterministic generated-parser comparison, diff-check and scoped joint semantic/preflight review pass. Initial raw CGo invocation failed before tests because flags were omitted; canonical wrapper validation after own make-cgo succeeded. No cross-worktree reusable native stamp is claimed for the dirty build.
Canonical BVT SQL/result pairs are unchanged; earlier BVT and unchanged-closure evidence retain their original producers rather than being relabelled as fresh execution on this merge. No new BVT, broad race, benchmark or deployed qualification is claimed. New-head CI will be evaluated independently.
Ready is preserved. Independent immutable design/capability approval, legacy lookup-cost disposition and reviewer-specific acceptance remain open. The accepted shutdown-upgrade scope is not expanded into an additional mixed-running/old-node-rejoin prerequisite for a reviewer who explicitly accepted that scope. This increment does not resolve review threads, request re-review, approve the full implementation or close issue#28037. QA required:yes. Earlier delivery sections below retain their named head/base bindings.
Current maintenance delivery — 2026-10-16
Published head:
d046a501b915f79058a226fbb9119a258ee3157c; validated tree:1d949e7f0b7915108b3d252f24a01f57b194d670; actual validation target:b3d6b21fe9d260c91e1777529a48a9d93061af33. This normal merge resolves a real conflict without rewriting history. Upstream LEAST/GREATEST remains protocol117; the seven-argument JSON_VALUE contract now uses118 consistently through local execution, helper composition, placement, destination, sender/receiver, persisted expressions and cache invalidation. Independent main117 and maximum-floor controls are retained; the actual predecessor117 rejects JSON_VALUE118. This allocation is not approval of other unmerged branches or the final coordinated rollout.PASS with Go1.27.1 Darwin/arm64 and the worktree's native CGo: 92 focused protocol tests; 4 frontend cache/publication tests; 3 real SQL integration tests (functional-index composition, persisted publication, binary-prepared temporal); 11,014 owning-package top-level passes with 3 existing unrelated test skips explicitly retained; scoped vet and configured incremental lint; gofmt and exact candidate self-review. The unchanged JSON_VALUE canonical cases reuse the earlier tree/producer-bound evidence after case/result and affected-contract comparison; no fresh BVT or remote deployment run is claimed by this increment.
New-head CI remains separate and is not represented by older checks. Ready is preserved; CHANGES_REQUESTED is not cleared by this push. Original ingestion/unmarshal and legacy large-JSON measurements, retained-cost disposition, exact immutable maintainer design/landing approval, actual predecessor-binary rollout/rejoin, durable recovery/restore and deployment QA remain open. No thread resolution or repeated re-review request is claimed. QA required: yes; issue #28037 remains open.
Everything below is historical evidence at its named source/base/producer. Earlier protocol numbers and the previous "current" headings do not override this record.
Latest maintenance status — 2026-10-14
Current published head:
3522832fe607c4dd4ee85fc2550aa80c40d3dc3a; validated tree:da402e18aa49f19639b6c736927bc772ad1e9088. This is a normal merge with exact parents64a0014e05e5238bb07ac8c59a2dc259fb41cbc0andfcad62a8ff06000e682824802f1155cbeea02a2f, prepared for an actual conflict. It preserves the JSON_VALUE branch together with parenthesized ALTER ADD, resolved partition lock identity, guarded ODKU PK assignments, external NULLIF rebuild, and view-replacement lifecycle changes. No version-allocation or performance optimization was added.Current incremental-patch evidence: a newly built Linux/amd64 CGO=1 service from this exact tree (Go1.27.1, CPU release, v3/SIMD), binary SHA256
7dba5cfe3c4fa834c785534c3d5b5feb48d62c4445a1296e082c38c8e741db48. Five focused parser tests, 73 focused consumers and eight normal owning packages passed. Real SQL checks include the three canonical two-CN issue29850/30084/30090 regressions plus a same-CN JSON/view/ODKU composition check covering rejection before destructive replacement, prepared rebind, atomic PK NULL/mismatch rollback and subsequent reuse.Canonical mo-tester normal comparison, never genrs:
dml/insert/issue_29850_primary_key_upsert.sql60,pessimistic_transaction/on_duplicate_key_resolved_target_lock.sql26,table/external_table_nullif_rebind.sql13,function/func_json_value.test149 andfunction/func_json_value_float.sql8, each twice — 512 actual comparisons, zero failed/ignored/abnormal. SQL and ISCP readiness, independent same-instance teardown and native loader identity were verified. Scoped Linux CGO1 race passed for issue30084 (N=2), issue30090 (N=3), and the affected compile owning package; test deadlines/oracles were not weakened. All ten owned containers and the exact remote scratch directory were independently confirmed absent; source, producer and raw evidence are retained.This publishes only the validated fcad merge patch. GitHub still reports a real conflict with later main changes, so this does not claim all remote conflicts are resolved. New-head CI is pending. Required checks from the previous head are superseded, not carried forward as current-head green. Ready is preserved.
The legacy large-JSON cost/disposition, generic-admission performance acceptance, exact immutable design approval, final coordinated cumulative allocation (113 remains provisional), actual predecessor-binary rollout/rejoin acceptance, formal review and deployment QA remain open. No measurement, thread resolution, re-review, merge, or whole-issue acceptance is claimed.
QA required: yes. This update does not close issue #28037.
Everything below is historical evidence at its originally named head/base; it does not override this section.
Historical maintenance status — dd5 merge
Current published head:
64a0014e05e5238bb07ac8c59a2dc259fb41cbc0; validated tree:1e10537cc600a21515ba2965689bb4e1b9923f2d; normal merge validation target:dd5bdb7a896398a161a93734a8073fe1ccc031b3. The merge has exact parents e2eda07 and dd5bdb7 and resolves the real generated-parser conflict by official regeneration, preserving JSON_VALUE grammar and the landed non-reserved SUBSCRIPTION contract. No later main catch-up or protocol allocation change was performed. Seven-argument JSON_VALUE remains provisional113, not final coordinated design/allocation acceptance.New affected-contract validation: actual Linux/amd64 CPU/release native and CGO=1 service build from this immutable staged tree; Go1.27.1 SIMD. Canonical
test/distributed/cases/keyword/subscription_identifier.sqlnormal comparison passed 18/18 twice, 0 failed/ignored/abnormal, on the same isolated SQL+ISCP-ready instance. Document@metacmp(true)stayed effective, including under the global CI nometa option. Actual fixture teardown was independently checked after each run before reentry. All owned processes/containers and the exact temporary data/cache directory were removed; producer and raw evidence retained. This closes the conflict-sync patch's previously missing Linux build/public-consumer validation, not whole-PR acceptance.The identical candidate reuses official goyacc two identical runs and focused96/owning1608 parser results. Earlier e2 JSON_VALUE149x2 and calendar32/136/214/108x2 are retained only as unchanged-contract evidence; they are not relabelled new Linux full-feature runs. The new service producer is bound to tree1e105, not an invented old/new embedded producer commit; binary SHA256
a5edfbc7a23dbe2791d3139fdf411e79d83f859c009c4e5da359dc8a8467c236.Ready is preserved; new-head required CI is pending. The prior e2 coverage cancellation failure (run38479027233/job115577192697) remains causally unresolved: six focused paired Linux controls passed without reproducing it, not a flaky/upstream or incident-fixed conclusion. Those old-head checks are superseded by this new head. Legacy/generic-admission cost disposition, final design/version acceptance, applicable formal reviews and deployment QA remain open. No thread resolution or re-review request is claimed.
QA required: yes — unchanged user-visible JSON semantics/persisted-expression/compatibility and deployment gates. This sync does not close issue #28037.
Everything below records earlier implementation and validation at its named historical head/base. Earlier version allocations, CI statuses and comparison quotas are historical and do not override this section.
What type of PR is this?
Which issue(s) this PR fixes:
Refs #28037
QA required: yes
What this PR does / why we need it:
Verified maintenance increment — 2026-10-20
Published normal merge
56eb04f23cbf03ce9b77505800bde276d877894f, preserving source98b8e43a518dc7e9033c5446addd720ccef9c813and actual mainc27f3f26ca6ba8e38486322e382a20093028fb38. This repairs a real merge conflict; it is not a catch-up for BEHIND alone. Main's independent MORPC118–122 meanings remain intact; the existing clause-bearing JSON_VALUE contract and its binder, placement/sender, actual stream, receiver and persisted-owner gates now use123. Ordinary two-argument calls remain distinct. The merged grammar was regenerated twice with identical output.Current-candidate validation (tree
d73de75bc381873176979463d2e60849e59428c9, Darwin/arm64, Go1.27.1, CGo enabled, GOMAXPROCS4, p1): five focused packages and five complete owning packages PASS (MySQL parser, pb/plan, function, planner, compile); scoped go vet and configured golangci-lint PASS; feature diff-check against the actual target PASS. Native library/source equivalence was checked; its original stamp predates only Makefile static-analysis-target changes, not native recipes, and no fresh producer SHA or rewritten stamp is claimed.Real single-CN frontend/mo-tester normal comparison: canonical
func_json_value.test/.result149/149 twice andfunc_json_value_float.sql/.result8/8 twice, zero failed/ignored/abnormal. Inputs and expected files are unchanged from this candidate, SQL/ISCP readiness was observed, and table/view teardown was independently checked before every next run. Test-owned processes stopped and the temporary adapter was removed before commit. Commands/results and input bindings: local maintenance evidenceheartbeat-20261019-1924.rbqeOy/28275-{owning-result,static-result,bvt-result,bvt-input-binding}.json.This is an incremental conflict/capability repair, not whole-PR or CR completion. Independent approval of the exact final contract, legacy lookup/ingestion cost disposition with malformed-input safety retained, predecessor-binary/shutdown-upgrade and durable-floor recovery, and deployed QA remain open. No thread resolution or re-review request was made. Old-head failed CI is superseded, not relabeled green; new-head CI must be evaluated independently. QA required: yes (visible SQL and durable/compatibility behavior); issue #28037 remains referenced without auto-close wording. Earlier evidence below stays bound to its stated historical revision.
Implements JSON_VALUE RETURNING / ON EMPTY / ON ERROR with a planner-only seven-argument overload while preserving the legacy two-argument form. The latest repair prevents TIME conversions from silently discarding a calendar date, both at runtime and when binding DEFAULT literals.
ParseTimeWithoutDatebetween runtime and DEFAULT validation; ordinaryParseTime/CAST behavior, precision checks and zero-date checks remain intact. DATE keeps its existing strict boundary, including rejecting midnight datetime spellings.cd8d5abf9665a97d13e50b04840fb74b877fd339. Preserves the landed v107 functional-index, v108 migration, v109 Unicode, v110 MEDIUMINT and v111 IndexSearchScan (algo_options/algo_exprs/ APPLY) contracts. JSON_VALUE overload 2 is provisional v112, not a final reservation or inclusion of the unmerged CRC candidate. Adds algorithm-expression-only composition and predecessor111 rejection controls.Design approval pending: candidate revision 8 at immutable head
056f37d8f34fff7760268089a7055450d193816c. Actual IndexSearchScan111 landing supersedes earlier allocations. JSON_VALUE112 remains a validation candidate; independent approval of this exact revision and a refreshed cumulative landing/allocation decision are required. Other unmerged112 candidates are not combined. Read/authoring admission, old-node rejection and unsupported downgrade below a committed floor remain distinct.Validation
Published maintenance head:
056f37d8f34fff7760268089a7055450d193816c; validation base:cd8d5abf9665a97d13e50b04840fb74b877fd339; exact validated/published tree:6bb2bf9dc54ed524a8cd68cc8665c2fd22cbf551. The maintenance commit has the previous source68 and CD8 as its two parents. GitHub now reports mergeable; Ready is preserved.4d273599ae2cab96aa69b51e1b0bdb2a9f933733: Go1.27.1 darwin/arm64, matching native provenance, normal repository CGo test wrapper, 824 named tests/subtests in internal validator/bytejson/keycodec; zero skips or failures. Full callback corruption/repair and charge-before-callback controls are retained.test/distributed/cases/function/func_json_value.testand.result, actual Java17 mo-tester normal comparison through the real SQL+ISCP-ready embedded frontend, 145/145 twice; zero failed/ignored/abnormal. Before each next entry, actual case database/table/column/index residue is0/0/0/0, SQL modes unchanged, Java waited and fixture closed. This is embedded Darwin execution, not a standalone release/deployed or Linux claim. A first artifact wrapper attempt stopped before SQL comparison because it read the prior log filename; its failure is retained, and only that path was corrected before the successful run. Expectations were not weakened.c18b573a446edce966570880d7a23845e896232adiffers only by the withheld numeric-prefix validator optimization. The final maintenance validator restores previous public68 production bytes and is directly rechecked by current core/BVT. These are content-based reuse, not freshly relabeled executions at the publication SHA. Injected protocol values on current binaries do not prove actual older release compatibility.The unmeasured numeric-prefix optimization is not published in this maintenance update. Its complete C18 source, new regressions and frozen optimized/base/preopt benchmark binaries are retained separately. The preopt and optimized1x outputs establish identical typed value/NULL and input identity, not performance acceptance. The retained timing matrix is NOT_RUN (0/80): measured CPU/I/O failed its frozen quiet-admission gate, so no warmups or timed windows were started. No cost finding is closed and no speedup is claimed.
Historical evidence remains at its original content/base/environment: generic admission append/unmarshal/copy ratios1.066/1.096/1.112 and removed663216bytes/16allocations; later legacy large-JSON retained cost about16.6x and noisy Darwin measurements are not current-base acceptance. Earlier integer-only optimization was rejected because mixed/string workloads regressed. Earlier direct-function wire regression3/3, canonical125comparisons, functional-index/migration controls and persistence acceptance remain historical; they are not rerun/relabelled by this update.
Current-head
CI Requiredis SUCCESS at exact056f37d8f34fff7760268089a7055450d193816cin run38309732024/attempt1. Actual old/new release binaries, old-node rejoin, full storage restart/physical restore/downgrade restrictions and deployment QA, final version/design acceptance, and the reviewer-requested generic-admission plus legacy-interface cost/disposition remain open. No automatic resolve or re-review is requested while a reviewer's applicable requirements are incomplete.Current raw core SHA256:
b53ad5c6b9394ef6c4e2bc358e25b9374c68f5789491817863798ebd671f4c6c; actual BVT raw SHA256:9f53403820ab2a1c8bdca7f1ae86c902537f5afb0839652a72645e21c1bd066d. Original test/result SHA256:5ca0b9c34e635f92664f8899861fa840fc123d439b89ad799913fbdcde9ea33e/6d3942e78d125e77e0a71abe6293500b9484cb9967a3326f9fdd41d5e0d3aa5d. Commands, native generation, named events, six normal-comparator files and cleanup are retained in the task'spr28275/cd8-maintenance-v1/ROOT-AUDIT.md; C18 reused evidence and frozen matrix are inpr28275/cd8-local-v1.Review closure ledger
Full implementation re-review follows independent approval of this specific design revision, as requested. All blocking reviewers remain in scope; author replies, resolved threads, CI or earlier blank approvals do not substitute for that approval. This PR remains Ready with CHANGES_REQUESTED; no merge or QA acceptance is claimed.
Maintenance update — 2026-10-26
This scoped update supersedes earlier maintenance capability numbers and validation revisions in this description.
25aaa8b12b3d1e357ca11d47e891c0f230f043e7; merged main:4769417cdce5531c9771644eca49f1e71d8f654c.-vet=allPASS; configured incremental lint PASS; frontend cache and public functional-index/persisted SQL tests PASS.Remaining gates are unchanged: the legacy whole-document validation cost P1 still needs a safe production provenance solution or independent measured-cost acceptance; malformed-descendant rejection remains intact. Independent approval of the exact revision-10 compatibility decision, predecessor-data shutdown upgrade, durable-floor restart/restore and issue QA remain pending. No complete-CR, approval, deployed-PASS or issue-closure claim is made.