Fix query API drift and add the continuous MobilityDB query versions - #1
Open
estebanzimanyi wants to merge 1 commit into
Open
Fix query API drift and add the continuous MobilityDB query versions#1estebanzimanyi wants to merge 1 commit into
estebanzimanyi wants to merge 1 commit into
Conversation
Update the query scripts to the current MobilityDB API and complete the missing/broken continuous (MobilityDB) versions of the pattern queries. API drift and fixes: - atValues(tbool, value) -> atValue for a scalar second argument - spanUnion(tstzspanset) -> spansetUnion (aggregate over spansets) - close an unterminated block comment; disambiguate a duplicate output alias; p.BufferGeom -> p.Geom; comment pasted psql output rows; align a DROP/CREATE table name; drop an orphaned CREATE TABLE stub; correct a stale query description (ten minutes) Continuous query versions, authored against the paper's continuous idiom and verified against the discrete counterparts on the Delhi/Paris data: - TGQ5_12: episodes where Pm25 > 150 via whenTrue(Pm25 #> 150) with the always-temperature predicate (8 rows / 4 trips) - TQ5_13: Pm25 > 300 and cloudy and humidity > 80 via a temporal conjunction (71 rows / 66 trips) - Paris part-of-day query over the temporal tour segments
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.
Updates the benchmark query scripts to the current MobilityDB API and adds the continuous (MobilityDB) versions of the pattern queries. All four scripts run without error on the Delhi and Paris datasets.
API and script fixes
atValues(tbool, value)->atValuefor a scalar second argumentspanUnion(tstzspanset)->spansetUnion, the aggregate over spansets (current MobilityDB restrictsspanUnionto spans)paris_queries.sql)delhi_districts.sql)p.BufferGeom->p.GeomCREATE TABLEstubContinuous query versions
These follow the paper's continuous idiom:
whenTrue(<tfloat> #> x)for the exact temporal episode extent, a temporal conjunction with&, and cells viatintSeq(tint(CellId, lower(AtTime))). Each matches its discrete counterpart on the data.