Skip to content

Wire the batch runners to the canonical BerlinMOD loaders - #59

Merged
estebanzimanyi merged 2 commits into
MobilityDB:masterfrom
estebanzimanyi:fix/batch-runners-canonical-loaders
Jul 22, 2026
Merged

estebanzimanyi merged 2 commits into
MobilityDB:masterfrom
estebanzimanyi:fix/batch-runners-canonical-loaders

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

bench_mbdb.sh and bench_mduck.sh read a load_*.sql loader and per-query qNN.sql files that are absent from the repository, so the batch benchmark cannot run.

Each runner reuses its canonical merged loader instead of a bespoke one:

  • bench_mbdb.sh runs berlinmod_load.sql (SELECT berlinmod_load(dir, true)) + berlinmod_th3index_setup.sql.
  • bench_mduck.sh runs mobilityduck_load.sql.

Both read the shared queries by splitting the single queries.sql on its -- @query markers. The MobilityDuck loop omits the search_path override, since the canonical loader creates its tables in the default main schema. The corpus is the canonical brussels_sf0.1 dataset.

The shared batch queries used a divergent vehId / Query* schema that does not
match the schema the canonical loaders produce. Rename the table and column
references to the canonical names the merged loaders (berlinmod_load.sql and
mobilityduck_load.sql) create — VehicleId, TripId, and the Instants, Periods,
Points, Regions and Licences parameter relations — so the single query source
is consistent with the canonical per-tool loaders every runner uses and with
the classic berlinmod_r_queries_portable.sql query set.
bench_mbdb.sh and bench_mduck.sh read a load_*.sql loader and per-query qNN.sql
files that are absent from the repository, so the batch benchmark cannot run.

Wire each runner to reuse its canonical merged loader instead of a bespoke one:
bench_mbdb.sh runs berlinmod_load.sql (SELECT berlinmod_load(dir, true)) and
berlinmod_th3index_setup.sql; bench_mduck.sh runs mobilityduck_load.sql. Both
read the shared queries by splitting the single queries.sql on its `-- @query`
markers. The MobilityDuck query loop drops the search_path override, since the
canonical loader creates its tables in the default (main) schema.
@estebanzimanyi
estebanzimanyi merged commit c4c481f into MobilityDB:master Jul 22, 2026
2 checks passed
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