Skip to content

bench(berlinmod): single canonical query file; SRID-consistent Points load#196

Open
estebanzimanyi wants to merge 1 commit into
MobilityDB:fix/bump-meos-pinfrom
estebanzimanyi:feat/berlinmod-canonical-queries
Open

bench(berlinmod): single canonical query file; SRID-consistent Points load#196
estebanzimanyi wants to merge 1 commit into
MobilityDB:fix/bump-meos-pinfrom
estebanzimanyi:feat/berlinmod-canonical-queries

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The BerlinMOD benchmark runs the 17 R-queries from a single
berlinmod_r_queries.sql derived from berlinmod_r_queries_portable.sql.
The only DuckDB-specific additions are ::GEOMETRY casts on MEOS return
values passed to DuckDB spatial functions and ::WKB_BLOB casts on DuckDB
GEOMETRY columns passed to MEOS functions. The runner parses the file by
-- QN: markers and injects .mode csv/.output per query; explain mode wraps
each query with EXPLAIN ANALYZE in-process, eliminating the per-query
explain files. Points.Geom is constructed via ST_Transform to EPSG:3857,
consistent with the trips coordinate system.

@estebanzimanyi estebanzimanyi force-pushed the feat/berlinmod-canonical-queries branch 3 times, most recently from 1894b5b to 3ad97a2 Compare June 10, 2026 16:18
… load

Replace the 17 per-query DuckDB-specific SQL files with a single
berlinmod_r_queries.sql derived directly from the engine-agnostic
berlinmod_r_queries_portable.sql (MobilityDB-BerlinMOD).  The queries
contain no engine-specific casts or prefilters; the identical SQL runs
on PostgreSQL/MobilityDB, DuckDB/MobilityDuck, and Spark/MobilityDuck
without modification.

The run_queries.py runner parses the file by -- QN: markers and injects
.mode csv/.output per query; explain mode wraps each query with EXPLAIN
ANALYZE in-process, eliminating the need for separate explain files.
Points.Geom is constructed via ST_Transform to EPSG:3857, consistent
with the trips coordinate system.

Expected row counts (BerlinMOD scalefactor 0.005, Brussels):
  Q1:72  Q2:1  Q3:6  Q4:80  Q5:100 Q6:0 Q7:26 Q8:75 Q9:94
  Q10:21 Q11:0 Q12:0 Q13:278 Q14:1 Q15:118 Q16:6 Q17:1
@estebanzimanyi estebanzimanyi force-pushed the feat/berlinmod-canonical-queries branch from 3ad97a2 to f4ed680 Compare June 10, 2026 17:11
@estebanzimanyi estebanzimanyi changed the base branch from main to fix/bump-meos-pin June 10, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant