Repository navigation
Sync rocicorp/mono main (0499748) - #282
Merged
Merged
Conversation
… to it Mono-Internal-Commit: 274395e880e8d73d3aeeffd63c701c006ec842a3
…tors Mono-Internal-Commit: b957de279c9d61da4807ca5f927a034374d7d8c9
Mono-Internal-Commit: e7e3d993d0ac22a40517b995ac0158aae0c117a6
Mono-Internal-Commit: 7a419dc46d804d251e005e4841ffa6c698342dbd
Mono-Internal-Commit: 4bd10adb4a88f9f6f550336e9df09a42e53725b8
Mono-Internal-Commit: c0d80fc2344bdd503a24844a90e4e7f494665a99
Mono-Internal-Commit: b05435ccf3645bf3249dc2080721a97c0b964efb
Mono-Internal-Commit: cd191f6b80ede346451216e1493461e6446116fd
Mono-Internal-Commit: 5063d1b271968f9f88740bbc8548f60140ebe98c
Mono-Internal-Commit: 2cd6abc6c56caac4c494677de81d6007e3078b5d
…-first min/max Upstream's 0499748 orders JSON strings before numbers when min/max reduces a JSON path. 12 cases change: 9 in bughunt-ivm.json and 3 in ivm-features.json, all min/max over a JSON path. Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859 Co-authored-by: tmm <tmm@tmm.dev>
Ports upstream's 0499748: when min or max reduces a JSON path that holds both, strings now order before numbers, as in Postgres's jsonb order. Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859 Co-authored-by: tmm <tmm@tmm.dev>
Ports upstream's 0499748: when min or max reduces a JSON path that holds both, strings now order before numbers, as in Postgres's jsonb order. Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859 Co-authored-by: tmm <tmm@tmm.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Land with a merge commit, not a squash.
10 upstream commits,
d1bfa20..0499748, merged with no conflicts. The merge touches no file restored by #188 (tools/restored-tests/verbatim.txthashes all match), andalign-manifests.mjschanged nothing.Client-relevant
feat(zql): order JSON strings before numbers in min/max: needs a port, done here. When min or max reduces a JSON path that holds both strings and numbers, strings now order before numbers, as in Postgres's jsonb order. Before, numbers came first. It regenerates 12 vectors, all min/max over a JSON path: 9 inbughunt-ivm.jsonand 3 inivm-features.json.test(zero-conformance): commits the regenerated vectors.fix(zero-swift): swaps the cross-type cases ofcompareAggregateValuesand updates its doc andmin(json:)'s.fix(zero-rust): the same incompare_aggregate_valuesandmin_json's doc.COLLATE "C").perf(zql): push and fetch through the IVM operators with iterators instead of generators. These don't change output: every vector other than the 12 min/max cases is byte-identical. Swift and Rust have their own operators, so there's nothing to port.Compatibility
PROTOCOL_VERSIONstays 57, and the onlyzero-protocolchange is a doc comment. min/max still arrive in a synced aggregate row's_0_valueas a JSON number or string.aggregatesFromSource), and min/max get no optimistic deltas. So clients on either order show whatever order their zero-cache uses.Server-only
Lockfile follow-up
None.
pnpm install --frozen-lockfilepassed with the lockfile unchanged.Checks run
zero-conformance: generate and test (27 files, 265 tests; the vectors are current) and check-types.zero-swift-cli: test (29/29) and check-types.zero-rustCLI test (25/25).pnpm exec syncpack lint. oxfmt onrustand the new changesets.swift format lint --strict,swift build --build-tests, andswift test --skip-build --skip E2ETests, with 383 tests in 62 suites passing. That includesBugHuntTests.ivm(206 cases) andIVMConformanceTests.features. Control: with the old comparator those two fail exactly the 12 changed cases.cargo fmt --check, andcargo run --release -p zero-conformance -- --require-generatedreplayed all 66,384 cases with 0 failures. Control: with the old comparator it fails exactly the 12 changed cases.Changesets
zero-swiftpatch andzero-rustpatch, for the min/max order.Land with a merge commit so upstream stays an ancestor of main and the port commits stay separate.