Skip to content

fix remaining date/time compatibility issues - #28932

Merged
mergify[bot] merged 4 commits into
matrixorigin:mainfrom
jiangxinmeng1:codex/date-remaining-20260915
Oct 3, 2026
Merged

mergify[bot] merged 4 commits into
matrixorigin:mainfrom
jiangxinmeng1:codex/date-remaining-20260915

Conversation

@jiangxinmeng1

@jiangxinmeng1 jiangxinmeng1 commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • BUG
  • Improvement
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #28600
Fixes #28599
Fixes #28598
Fixes #28597
Fixes #28154
Fixes #28889
Fixes #28563
Fixes #28236
Fixes #28235
Fixes #28232
Fixes #28561
Fixes #28890
Fixes #28570
Fixes #28565
Fixes #28564
Fixes #28495
Fixes #28493

Already present on the upstream base, not newly fixed here: #28562, #28240.
Not fixed here: #28602; retaining invalid calendar components under ALLOW_INVALID_DATES requires a persisted representation design.

What this PR does / why we need it:

Consolidate remaining temporal compatibility behavior under existing owners:

  • Session settings: timestamp, explicit_defaults_for_timestamp, lc_time_names and TIME_TRUNCATE_FRACTIONAL. Effective successful changes invalidate ordinary/prepared plans through the session owner; equivalent/rejected SETs retain warm plans. Remote execution carries the locale snapshot through the existing process codec.
  • Assignment ownership: INSERT/UPDATE/ODKU evaluate volatile TIMESTAMP sources once; automatic ON UPDATE compares materialized, target-typed final values and preserves no-op updates. Sequential/joined/simultaneous assignments share normalization and existing target guards. Removed the unused predicate alternative that copied/replayed RHS expressions.
  • Legacy defaults: implicit NOT NULL, first-TIMESTAMP automation and later omitted zero defaults are separate policies. Runtime NULL substitution preserves target FSP; explicit NULL and persisted absent defaults remain intact.
  • Temporal results: TIMESTAMP arithmetic returns DATETIME, selected/all-null execution follows shared diagnostics, and CTAS/UNION/CASE/IF retain FSP. Exact numeric/string fractional casts and IGNORE recovery apply truncation before rounding. Registered MAKEDATE handles exact DECIMAL rounding with DATE output; persisted legacy overload identities remain supported.
  • Time zones: one conversion core returns normalized time and DST-gap status, reused by typed/string casts. UTC avoids classification work; ordinary non-UTC times avoid transition scans. Gap normalization preserves fractions, strict mode rejects, and non-strict/IGNORE warn. Fold selection and bounded transition search are unchanged. CONVERT_TZ validates offsets and retains DATETIME/FSP results.
  • Locale: explicit shared name/abbreviation tables, resolved once per vector invocation without a new cache. French June is jun and July jui; year-zero DAYNAME follows the same locale owner. Numeric DATE_FORMAT paths and English/remote fallback remain supported.
  • JSON: temporal aggregates reuse the scalar conversion owner for TIME/DATETIME/TIMESTAMP/YEAR, retaining fractions and session timezone. DATE keeps its historical string identity. Removed the private legacy conversion route and unreachable temporal size/append branches. Preflight size and candidate encoding use the same session timezone as fill, preventing underestimated capacity and post-publication growth at year-width boundaries; admission/accounting/spill remain with existing owners.
  • Replay promotion: persisted settings accept the same minimum-four decay-point domain as the normal consumer. Tests verify five-point roundtrip, first-four scheduling semantics, short-point rejection, recovered nondefault trigger, write admission and clock ordering.
  • Test integration: use main's canonical evaluator type and fixture cleanup owner; do not restore the removed alias. Update the stale extra-points CI oracle without narrowing the production contract.

Persisted data/expression compatibility is retained. Mixed-version rolling upgrade compatibility is not claimed. No new compatibility state machine, aggregation framework, or coverage-policy adjustment.

Validation

Local macOS arm64 / Go 1.26.4, against base f1137a6:

  • Native inputs/artifacts verified and reused; make build passed.
  • Full owning-package tests with vet and fresh instrumentation passed: types, frontend, aggexec, plan, function, process, TAE merge. Final function run includes typed/string strict/non-strict/IGNORE DST cases, NULL and microseconds.
  • Exact CI-failing replay/promotion consumer test passed (14 scenarios), including successful extra-point replay and failed handoff controls. SCA's undefined evaluator error shares the same corrected cause.
  • Real SQL mo-tester temporal_assignment_regression: 105/105 full-metadata comparisons passed, including prepared locale A/B/A, French June/July/year-zero, sequence-once assignment, JOIN DEFAULT/swap/selectors, runtime NULL/FSP and fractional/default policy. Separate public DST experiment verified strict rejection with zero rows and two warnings each for non-strict/IGNORE typed/string normalization.
  • JSON tests compare heap/accounted bytes, size versus append and typed identity, including session-timezone TIMESTAMP and DATE string controls. On a UTC worker, array/object year-boundary cases fail before the preflight correction and pass afterward without post-preflight peak growth, preserving spill results. One-byte-short admission rejects before publication. Gap/fold matrix includes New York edges, Lord Howe's half-hour gap and Apia's skipped day.
  • Configured scoped golangci-lint: 0 issues. Whitespace/format checks passed.
  • Local UT-only changed-block coverage: 603/774 = 77.91%, strictly above 75%, using matching profiles, CI parser and unchanged exclusions. This is not the full distributed CI result.
  • Diagnostic conversion microbench: UTC approximately 19–21 ns versus 53 ns before correction; ordinary New York approximately 48–61 ns versus 88–90 ns; zero allocations. Concurrent build load makes these approximate microbench measurements, not end-to-end workload claims.
  • The follow-up production delta is 101 additions / 203 deletions (net -102); test additions target independent contracts rather than a coverage threshold.
  • Solution/design and final overall review: gpt-6.1-sol / xhigh, runtime configuration verified, with complete PR map and prior findings reconciled.

Post-push CI is pending and is not claimed passed. Historical neighboring DAYNAME full-metadata display-width mismatch remains outside this fix; its value comparisons passed, not its full-metadata fixture.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@matrix-meow matrix-meow added the size/XL Denotes a PR that changes [1000, 1999] lines label Sep 15, 2026

@aptend aptend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep review of exact head a120d94 against base b9013dc. This is the first review: there are no prior reviews, inline threads, or author replies. I checked the full 44-file diff, temporal parsing/casts/arithmetic and metadata, JSON aggregate and update paths, and exact-head CI (all checks complete without failures). One correctness blocker remains:

[P1] pkg/sql/plan/function/temporal_locale.go:60-72 reads lc_time_names only via proc.GetResolveVariableFunc and silently falls back to en_US when that resolver is absent. Remote CN processes have no session-variable resolver, as pkg/vm/process/types.go:133-137 and process_codec_test.go explicitly note. The pipeline SessionInfo built in pkg/vm/process/process_codec.go:165-181 carries timezone and sql_mode but no lc_time_names; decoding at :480-500 cannot restore it. Therefore after SET lc_time_names='fr_FR', a table scan/projection evaluated on the initiating CN returns DAYNAME(d)='dimanche' or DATE_FORMAT(d,'%M')='décembre', while the same expression evaluated in a remote CN pipeline returns 'Sunday' or 'December'. The result depends on placement and can be persisted incorrectly by CTAS/INSERT SELECT. This PR specifically adds locale-sensitive execution in func_unary.go:11049-11150 and func_binary.go:4940, so this is a newly introduced cross-CN contract gap, not merely a missing test. Carry the effective locale in the process/session wire snapshot and use it when no resolver is present; add a two-CN regression using a non-English locale and table data. Current unit tests install a local resolver and do not exercise the remote path.

Non-blocking hygiene: git diff --check reports trailing whitespace in two changed func_uuid_versions.result rows.

@aptend aptend left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep re-review of exact head 8840e8c against base b9013dc: APPROVE. I read the sole prior review and PR discussion (there are no inline threads or author replies), revisited the full 51-file change map, and checked both commits since the prior reviewed head a120d94.

The previously blocking cross-CN locale mismatch is closed: BuildProcessInfo now captures effective lc_time_names into pipeline.SessionInfo field 22, ConvertToProcessSessionInfo restores it, a forwarded process retains it, and temporalLocaleForProcess uses that snapshot when a remote CN has no session-variable resolver. The new codec and locale tests exercise these boundaries; the DAYNAME/DATE_FORMAT BVT adds a non-English table-data case. The final whitespace-only commit also closes the prior diff-check issue. I found no remaining verified blocker in the reviewed code.

Local exact-head validation: make thirdparties and make -C cgo; focused process codec, temporal locale/date-time function, and container/types tests passed; git diff --check passed. Current-head GitHub checks show 10 passes, 1 pending, 16 skips, so this is not a claim that all CI or mixed-version behavior has completed.

@aunjgr aunjgr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 0f34e1e. The previously reviewed production head 8840e8c is unchanged; the sole later commit adjusts two empty metadata fields in the UUID BVT result. I checked that delta and reused the prior full-contract review for the unchanged temporal/planner implementation. Exact-head CI is green and I found no new blocker.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep review of 0f34e1e against merge-base/base b9013dc. REQUEST_CHANGES. Reviewed the 51-file change map and the prior reviews, without subagents. The earlier same-version remote-locale finding is addressed by SessionInfo field 22, codec capture/restore and fallback; this does not close the independent compatibility/assignment findings below.

Design: sharing the process clock, session snapshot and existing JSON conversion owner is the right direction. The implementation is not yet a systemic closure: it overwrites a persisted function execution identity while leaving ordinary SQL on the old result domain, and uses expression copying / AST NULL special cases where evaluated assignment values and assignment policy should own the behavior. These are observable correctness problems, not a preference for additional abstraction. Ordinary bug-fix work does not need a new state machine or an RFC to address them.

QA/evidence: exact-head CI Required, Linux UT/SCA, compose/proxy BVT are successful; upgrade jobs are skipped. Existing author evidence covers focused temporal/plan tests and full types/process/aggexec, but the function package run was incomplete. I attempted the repository CGo wrapper with TestSpecialIntegerLegacyExecutionIdentities in an isolated exact-head worktree; it stopped before compilation because native artifacts were absent and primary-worktree reuse was rejected due to differing native inputs. No new local runtime pass is claimed. The inline findings are source-traced counterexamples, not claims that I executed their SQL locally. The current legacy identity test was changed to the new type/value, so its success no longer demonstrates compatibility with the original serialized expression.

Implementation/test/docs reviewed separately: no design document is changed. Direct MakeDate helper tests bypass the ordinary SQL binding that must be fixed; replacing the no-argument UNIX_TIMESTAMP expectation validates the implementation instead of the external oracle. Please add focused public-path controls for the findings, with stable metadata/value/diagnostic assertions rather than more redundant helper cases.

Performance/unhappy paths: ON UPDATE duplicates potentially expensive and volatile assignments per automatic column (see finding), and predicates are built even for tables without automatic columns. Locale resolution currently repeats per row/directive; consider resolving once per vector invocation. The old MakeDateString production entry is now unused, and JSON's private legacy temporal branches are retained largely for old direct tests; remove only genuinely superseded paths while preserving real persisted identities. The DST search has a finite transition bound; no new goroutine, lock wait, queue, or resource ownership transfer was introduced. I found no separate new lifecycle blocker in the JSON/timezone additions. Two UUID golden metadata rows still trigger diff --check trailing-whitespace diagnostics; these empty-field separators are not a merge blocker by themselves.

Comment thread pkg/sql/plan/function/list_builtIn.go Resolved
Comment thread pkg/sql/plan/bind_update.go Resolved
Comment thread pkg/sql/plan/function/func_builtin.go Resolved
Comment thread pkg/sql/plan/build_ddl.go Resolved
Comment thread pkg/sql/plan/bind_insert.go Resolved
Comment thread pkg/sql/plan/function/func_cast.go Resolved
Comment thread pkg/sql/plan/function/func_cast.go Resolved

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep review of exact head dc2241a against base/merge-base 76862df. REQUEST_CHANGES. No subagents. Reviewed every changed hunk, the 17 claimed issue contracts, all prior reviews and all seven inline threads. Data/persisted-expression compatibility is in scope; mixed-version rolling upgrades are deliberately excluded.

The direction is sensible: use the existing process clock/session snapshot, preserve temporal type/FSP through the existing type join, share scalar JSON conversion, and preserve old persisted MAKEDATE execution identities while routing new SQL through the canonical integer-coercion owner. The remaining implementation is not a systemic closure: copied UPDATE expressions are used in place of evaluated assignment values, AST NULL-to-DEFAULT substitutions stand in for assignment policy, and new temporal loops/preprocessing bypass established precision, domain and diagnostic rules. The five inline findings below have concrete exact-head counterexamples, not just design preferences.

Prior-comment closure (all seven threads are marked resolved on GitHub, but two contracts remain open):

Previous finding Current assessment
Persisted MAKEDATE identity / new SQL DATE domain Addressed: overloads 0/1 keep VARCHAR contracts, new SQL binds overload 2 through canonical integer conversion. Unchanged legacy serialized execution, public binding/folding, prepared reuse and persisted generated/check/default controls passed locally.
UPDATE RHS executed repeatedly Still open: a public SQL-bound plan contains three RAND trees for one assignment; the sequential-assignment control contains one.
No-argument UNIX_TIMESTAMP must be integer seconds Addressed; frozen fractional process-clock test returns integer 1704067200.
First TIMESTAMP selection / explicit ON UPDATE exclusion The requested selection/exclusion changes are present in the DDL owner; this does not close the separate NULL-assignment contract.
Legacy TIMESTAMP NULL assignment Still open: ordinary single-assignment UPDATE rejects NULL; INSERT and sequential UPDATE substitute a constant DEFAULT rather than current time.
Seventh fractional digit rounded before truncation The destructive intermediate rounding has been addressed, but the new preprocessing introduces an independent grammar/IGNORE regression below.
DST-gap rejection versus IGNORE Addressed for the tested matrix: VARCHAR and typed DATETIME sources × strict ordinary / strict IGNORE / non-strict assignment all passed with a real statement-runtime profile.

The earlier same-version remote locale issue is also addressed by pipeline field 22, capture/restore/forwarding and the resolver-free snapshot fallback; process codec and locale tests passed.

Evidence and limits:

  • Built native dependencies in an isolated exact-head worktree with make -j8 cgo; ran tests with the repository mo-cgo-test wrapper, Go 1.26.4 on darwin/arm64. No production edits or service SQL execution are claimed.
  • Full local owning packages passed: pkg/container/types (1.724s), pkg/vm/process (1.664s), pkg/sql/colexec/aggexec (2.081s).
  • Existing focused planner/function tests passed, including temporal arithmetic metadata, mixed numeric changed-row casting, MAKEDATE legacy/public/prepared/persisted paths, temporal truncation across sources, locale fallback and integer UNIX_TIMESTAMP.
  • Independent planner probes compiled public SQL and inspected assignment dependencies. Independent runtime vector probes failed for TIMESTAMP ADDTIME/SUBTIME fraction/range controls, DATETIME-result interval arithmetic below the TIMESTAMP lower bound, and truncation-enabled IGNORE/valid-whitespace controls. Adjacent DATETIME, truncation-off, explicit CURRENT_TIMESTAMP and sequential UPDATE controls passed.
  • Exact-head CI run 36679314943 is successful, including Linux UT/SCA, compose/proxy BVT and CI Required. That does not cover or invalidate the counterexamples.
  • diff --check reports only two UUID golden rows containing trailing empty metadata fields; these separators are not a blocker.

Implementation, tests and docs were assessed separately: 52 changed files; handwritten production/proto +1476/-132, tests/goldens +616/-26, generated protobuf +132/-77; no documentation change. Ordinary focused bug fixes do not need an additional state machine or an RFC. The added unregistered MakeDate/makeDateRoundedInteger implementation is now called only by direct tests, duplicates canonical integer coercion, and should be removed along with tests that validate only that unused route. Keep genuinely required old serialized identities, not dead alternate implementations. New timestamp arithmetic loops should reuse the existing DATETIME arithmetic/parser/mask/error owner rather than maintaining a parallel reduced contract. Tests should assert public results/metadata/evaluation counts and policy contrasts; the current mostly scale-6 happy-path fixtures miss these boundaries.

Performance/unhappy paths: repeated UPDATE RHS evaluation is both a correctness bug and repeated per-row work. Locale lookup/copy currently repeats per row/format directive, and JSON temporal preflight/append performs conversion twice; hoist/reuse where ownership permits and measure representative vector workloads before claiming improvement. No benchmark speedup is claimed. JSON growth/admission/spill remain under the existing aggregate owner, and its lifecycle/spill/preflight tests passed. No new goroutine, queue or lock protocol is introduced; no additional verified lifecycle blocker was found.

Comment thread pkg/sql/plan/bind_update.go Resolved
Comment thread pkg/sql/plan/bind_insert.go Resolved
Comment thread pkg/sql/plan/function/func_binary.go Resolved
Comment thread pkg/sql/plan/function/func_binary.go Resolved
Comment thread pkg/sql/plan/function/func_cast.go Resolved
XuPeng-SH and others added 2 commits October 3, 2026 23:57
Share normalized update assignment producers, invalidate session-dependent prepared plans through existing cache ownership, and apply exact numeric fraction truncation before parsing. Normalize legacy TIMESTAMP declarations independently of automatic-column position, preserve persisted defaults, and match promotion validation to accepted settings.

Cover joined and sequential updates, prepared reuse/retry, numeric and masked casts, legacy DDL/replay, and persisted promotion settings. Remove unreachable MAKEDATE helpers and validate the registered SQL path. No coverage gate changes.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased onto main 7ff3eac2e8f17c0d013178c287dc686b4360b0f0 and pushed 14ec3d1cfb0b685d6732ff0e972023657a66ae32 to this original PR (lease protected).

Pre-push independent model gate: passed, no remaining material blocker. Runtime verified gpt-6-astra / xhigh, final review session 01a10344-64f8-73e0-851c-bfe8b05b36f4, accepted correction fingerprint d45111382c44d3d0e0b9b61f64205ccd0509c67a8cf0a1f0ca599d6173c26005; committing the reviewed content does not change that evidence.

All five reproduced blockers are closed: joined UPDATE DEFAULT/volatile ownership and target guards; stale prepared locale/mode/default-policy plans; exact numeric fractional truncation before rounding; legacy TIMESTAMP nullability/default/replay policy; accepted persisted settings failing promotion. Removed unreachable MAKEDATE helpers and their direct-only tests; the registered SQL path is exercised instead. Existing sequential/simultaneous assignments, numeric diagnostics, and persisted overload/default ownership remain intact; no new cache state or alternate execution state machine.

Validation:

  • Native/service builds and seven full owning-package checks with vet passed; affected checks rerun after source changes.
  • Configured lint: 0 issues.
  • Deterministic real SQL regression: 105/105 full-metadata comparisons passed, including JOIN no-op/swap/inactive/duplicate target sequence counts, prepared A→B→A and failed-rebuild retry, numeric masks/carry, and legacy NULL/default behavior.
  • Fresh matching UT-only changed-block coverage: 595/781 = 76.18%, using the actual CI parser with unchanged >75% threshold and exclusions. No stale line offsets or old CI coverage profiles were merged.

Persisted data/expression compatibility was reviewed; mixed-version rolling upgrades are outside this task. Historical neighboring DAYNAME metadata-width mismatch is disclosed in the PR body, not claimed passed. Post-push CI remains pending and was not waited for.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deep review of exact head 91caf632ca8c45a15bc59b7c6557aa34612e5b7b against base/merge-base f1137a6cac72852be2ab2e5078b684b98f23d96c: REQUEST_CHANGES. No subagents; no production edits. Persisted data/expression compatibility is in scope; mixed-version upgrades are excluded.

The overall ownership direction is reasonable: materialize final assignment values once, use the existing assignment/default policy and prepared-plan invalidation owner, retain real persisted execution identities, and share temporal/JSON conversion. The four inline findings are current-head build, result-correctness and measured common-path cost problems. They do not require another state machine or framework.

Historical review closure

I read all prior reviews and all 12 inline threads, not just GitHub's resolved flags. The old correctness fixes remain present:

  • MAKEDATE overloads 0/1 retain persisted VARCHAR execution; new SQL uses overload 2 / DATE and canonical integer coercion.
  • UPDATE storage, changed-row tests and automatic columns consume the materialized final RHS; sequential/simultaneous, joined DEFAULT, inactive/duplicate-target and volatile-value controls are retained.
  • Legacy TIMESTAMP NULL uses statement current time, not a constant DEFAULT; first-column automation, nullability, FSP, strict-zero admission and unchanged absent-default replay are covered.
  • UNIX_TIMESTAMP() retains integer seconds. Fractional parsing preserves truncation before rounding without bypassing grammar/IGNORE handling; typed TIMESTAMP arithmetic uses the bound DATETIME domain/FSP and shared calendar diagnostics.
  • Remote locale capture/decode/forwarding/fallback remains connected through session field 22. Existing prepared handles rebuild on successful effective locale/mode/default-policy changes and remain retryable after rebuild failure.

Not all historical engineering comments are closed: both callers of makeUpdateChangedRowsPredicate now pass true, but the false/RHS-copy branch remains; JSON's old private temporal helper branches and duplicate unreachable temporal switch cases remain; locale lookup/copy still occurs per row/directive. These are distinct from necessary persisted MAKEDATE compatibility and should not be retained solely to satisfy old helper tests.

Evidence and limits

  • Unmodified-head repository CGo wrapper, Go 1.26.4, darwin/arm64: full planner package PASS (15.466s); full function package BUILD FAIL at the two obsolete fEvalFn references. This is not a native/linker/environment failure.
  • For further diagnosis only, an external Go overlay supplied type fEvalFn = executeLogicOfOverload plus review probes; no tracked files or production functions were changed. With this alias, the existing full function suite passed 8.902s. That is not an unmodified-head pass.
  • Independent public SQL parsing -> BuildPlan -> expression execution reproduced French June %b and year-zero DAYNAME failures. July/ordinary-year controls passed. Direct vector tests independently reproduce both. The June oracle is MySQL's explicit locale table, not the new implementation's heuristic.
  • A same-binary microbenchmark compares current ConvertToGoTime with the verbatim merge-base method: normal UTC conversion ~16 -> 53 ns/op; America/New_York ~21 -> 90 ns/op (three 300ms samples, Apple M4). This is component cost, not an end-to-end SQL slowdown claim.
  • I also challenged typed-DATETIME DST masking: the direct helper violates a partial-mask expectation, but current FunctionExpressionExecutor compacts selected rows before execution. I am not reporting an unproven CASE/SQL failure from that direct-only probe.
  • Prior owning-package and 105/105 real-SQL regression evidence is reused only for unchanged relevant closures. The main merge changed function fixtures and default binding, hence fresh function/planner validation above. No new service/BVT, full-CI or race pass is claimed; CI was not waited for.

Engineering and test quality

Reviewed the complete 61-file delta and implementation/tests/generated code separately: handwritten Go production +1770/-500; Go tests +1049/-18; generated protobuf +132/-77; remaining changes are proto/SQL/goldens; no documentation delta. The new deterministic NEXTVAL, same-handle A-B-A, NULL/default and arithmetic-boundary controls add real value. However, several new function cases use Run without Free (including the locale cases and new temporal coverage matrices), and TestTimestampTemporalResultPaths leaves its vectors/results unreleased. Use the main fixture's RunAndFree or immediate deferred Free, consolidating overlapping happy-path setup instead of growing parallel fixtures.

The production unhappy-path audit found no additional confirmed wait/cleanup blocker: existing Session EXECUTE/Close and aggregate admission/flush/free remain the owners; there are no new goroutines/queues, and the DST transition search is bounded. This does not erase the common-path CPU regression below. The two UUID golden trailing-empty-field whitespace warnings remain nonblocking.

Comment thread pkg/container/types/datetime.go Resolved
Comment thread pkg/sql/plan/function/func_unary.go Resolved

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall re-review at 1decb89: no unresolved material blocker. The four findings in review 5402525774 are closed: canonical evaluator integration, one-core DST conversion/status reuse, explicit French June/July abbreviations, and locale-aware year-zero DAYNAME. CI's extra-decay-point oracle now tests the accepted persisted domain rather than narrowing it.

The final gpt-6.1-sol/xhigh review also identified and closed JSON preflight's worker/session timezone mismatch: size and candidate bytes now share the captured session timezone with fill. Both UTC-worker year-boundary counterexamples failed before and passed after, with no post-preflight capacity growth, exact spill results, and one-byte-short rejection before publication. Existing UPDATE/scalar JSON ownership replaces unused branches; production follow-up net -102 lines. Persisted data/expression identities and all historical comment closures were reconciled; mixed-version rolling upgrades excluded.

Validation: seven owning packages with vet/instrumentation passed; exact failing promotion consumer matrix passed; full-metadata public SQL 105/105 passed; separate typed/string DST strict/non-strict/IGNORE checks passed; final build passed; configured scoped lint 0 issues. Fresh matching local changed-block coverage 603/774=77.91%, unchanged >75% policy. Approximate scalar benchmarks improve UTC and ordinary NY conversion with zero allocations, not an end-to-end claim. Design and overall review runtime verified gpt-6.1-sol/xhigh (sessions 01a1036d-7e09-76f0-add9-ced25f369d64 and 01a10380-1a7a-7d11-8562-ebac5ef08ff6), final reviewed diff bee94a72...648afae matches committed content. New CI is pending and was not waited or claimed passed.

@mergify

mergify Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-03 22:07 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged — 2026-10-03 22:07 UTC · at 0c3f7e035d90fbcf205b3164c560eda2df38335e · squash

This pull request spent 17 seconds in the queue, including 1 second running CI.

Required conditions to merge

This branch was previously deployed

1 inactive deployment
ci — 1decb89e Deployed Oct 4, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/enhancement kind/refactor Code refactor kind/test-ci size/XL Denotes a PR that changes [1000, 1999] lines

Projects

None yet

5 participants