Read Primitives approx_quantiles_array
Read Primitives benchmark · all Read Primitives queries
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT l_returnflag, l_linestatus, APPROX_QUANTILE(l_quantity, ARRAY(0.25, 0.5, 0.75, 0.95)) AS quantity_quantilesFROM lineitemGROUP BY l_returnflag, l_linestatusRepresentative 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_quantiles_array'])Source
Query text: benchbox/core/read_primitives/queries.py