Skip to main content

tpchq6_query

Function tpchq6_query 

Source
pub fn tpchq6_query() -> ZipTerm
Expand description

The query of Spatial’s TPCHQ6 regression app (pir/regression/TPCHQ6.scala), transcribed: over the columns dates, discts, quants, prices (read in that order), the revenue term date > MIN_DATE && date < MAX_DATE && disct >= MIN_DISC && disct <= MAX_DISC && quant < 24 ? price·disct : 0 with its MIN_DATE = 0, MAX_DATE = 9999, MIN_DISC = 0, MAX_DISC = 9999.