bench(berlinmod): single canonical query file; SRID-consistent Points load#196
Open
estebanzimanyi wants to merge 1 commit into
Open
Conversation
1894b5b to
3ad97a2
Compare
… 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
3ad97a2 to
f4ed680
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.
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.