test(parity): 022_temporal.test — representative sample of upstream temporal regression#22
Merged
nhungoc1508 merged 1 commit intomainfrom May 4, 2026
Merged
Conversation
This was referenced Apr 25, 2026
…ne upstream) Ports a section-by-section representative sample of mobilitydb/test/temporal/queries/022_temporal.test.sql (3296 lines) to test/sql/parity/022_temporal.test. Each upstream section gets 1-3 queries that exercise the surface; full per-type coverage is left for follow-up files. Active sections (31 assertions, all passing): - I/O for tbool / tint / tfloat / ttext instants, discrete sequences, continuous sequences, with associated parse-error assertions - Constructor scalars TINT / TFLOAT / TBOOL / TTEXT - Accessors: tempSubtype, interp, startValue, endValue, minValue, maxValue, valueN, duration, timeSpan - Comparison: =, <>, temporal_cmp - Transformations: shiftValue - Restrictions: atValues, atMin, atMax - Modifications: appendInstant Skip blocks (each with a one-line technical note): - Utility: mobilitydb_version() / mobilitydb_full_version() not registered. - Step interpolation parsing: `Interp=Step;[...]` literal — verify output formatting before activating. - tboolSeq / tintSeq / tfloatSeq / ttextSeq with explicit interpolation-text 2nd argument: needs verification. - scaleValue: returns the input unchanged for tint inputs (verified the 2-scaled tint matches the 1-scaled version), likely a wrapper bug. MEOS symbol: tnumber_scale_value. - tsample / tprecision: not yet checked. MEOS: temporal_tsample, temporal_tprecision. - Aggregate functions (tcount, tand, tor, tmin, tmax, tsum): same architectural gap as 015_span_aggfuncs (no AggregateFunction registrations in MobilityDuck). Full suite passes (778 assertions, 14 test cases).
Member
Author
|
Refreshed: replaced the |
054d25c to
558b6ab
Compare
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.
Summary
Ports a section-by-section representative sample of
mobilitydb/test/temporal/queries/022_temporal.test.sql(3296 lines) totest/sql/parity/022_temporal.test. Each upstream section gets 1-3 queries that exercise the surface; full per-type coverage is left for follow-up files.Active coverage (31 assertions)
tbool/tint/tfloat/ttextliteral parsingtbool '2@...',tfloat 'ABC@...'tint '{...}',tfloat '{...}'tint '[...]',tfloat '[...]'TINT/TFLOAT/TBOOL/TTEXT(value, timestamptz)tempSubtype,interp,startValue,endValue,minValue,maxValue,valueN,duration,timeSpan=,<>,temporal_cmpshiftValueatValues,atMin,atMaxappendInstantSkip blocks (gap manifest)
mobilitydb_version()/mobilitydb_full_version()not registeredInterp=Step;[...]literal — verify output formatting before activatingtboolSeq/tintSeq/tfloatSeq/ttextSeqwith'discrete'scaleValue(tint, n)tnumber_scale_valuetsample/tprecisiontemporal_tsample,temporal_tprecisiontcount,tand,tor,tmin,tmax,tsum)AggregateFunctionregistrations in MobilityDuckTest plan
make releasethenTZ=UTC ./build/release/test/unittest "<proj>/test/*"— full suite passes (778 assertions across 14 test cases).Drafted because this is a representative sample, not a full 1:1 port. Follow-up parity files (e.g. per-section per-type) will refine.