Read Primitives approx_top_k_lineitem
Read Primitives benchmark · all Read Primitives queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT APPROX_TOP_K(l_shipmode, 5) AS top_shipmodesFROM lineitemRepresentative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import ReadPrimitives
bench = ReadPrimitives(scale_factor=0.01) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['approx_top_k_lineitem'])Source
Query text: benchbox/core/read_primitives/queries.py