Commit 6b0d16b
Add TPC-DS Phase 3: 8 more tables (catalog_sales, web_sales, and 6 others)
Implements the following tables in tpcds_benchmark:
catalog_sales — master-detail (callback-based, 4-14 line items/ticket)
web_sales — master-detail (callback-based, 8-16 line items/ticket)
customer — dimension table (simple, 100K rows at SF=1)
item — dimension table (simple, ~18K rows at SF=1)
date_dim — dimension table (simple, 73,049 fixed rows)
store_returns — driven through store_sales ticket loop
catalog_returns — driven through catalog_sales ticket loop
web_returns — driven through web_sales ticket loop
Changes:
- tpcds_dsdgen.h: added struct definitions for all 8 new table row types,
table ID constants, mk_w_* function declarations, and EMBEDDED_DSDGEN
extern callback declarations for catalog_sales and web_sales
- dsdgen_wrapper.hpp: added generate_* method declarations for 8 tables
- dsdgen_wrapper.cpp: Arrow schemas, trampolines (catalog/web sales),
generate_* implementations; returns tables are driven through their
parent sales loop using a no-op callback to suppress file output while
populating the global sales struct for valid return references
- dsdgen_converter.hpp/.cpp: Arrow builder converters for all 8 tables;
updated append_dsdgen_row_to_builders() dispatcher
- tpcds_main.cpp: updated parse_table(), generation dispatch, and
usage text to reflect Phase 3 completion
- third_party/tpcds submodule: updated to include w_catalog_sales.c
and w_web_sales.c EMBEDDED_DSDGEN callback patches
All 10 implemented tables verified: correct row counts, sane values.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bf57b3c commit 6b0d16b
7 files changed
Lines changed: 1496 additions & 27 deletions
File tree
- include/tpch
- src
- dsdgen
- third_party
- dsdgen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
33 | 89 | | |
34 | 90 | | |
35 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
84 | 148 | | |
85 | 149 | | |
86 | 150 | | |
| |||
0 commit comments