1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! TPC-H Benchmark Module
//!
//! This module provides TPC-H (Transaction Processing Performance Council - H)
//! benchmark utilities for testing decision support / OLAP workload performance.
//!
//! ## Data Generation
//!
//! The `data` module provides generators for creating TPC-H benchmark data:
//! - TPCHData: Main data generator with scale factor support
//! - Reference data constants (NATIONS, REGIONS, SEGMENTS, etc.)
//!
//! ## Queries
//!
//! TPC-H defines 22 queries that represent complex analytical operations:
//! - Q1: Pricing Summary Report
//! - Q2: Minimum Cost Supplier
//! - Q3-Q22: Various analytical queries
//!
//! SQLite-specific variants are provided for queries using EXTRACT(YEAR FROM date)
//! since SQLite uses strftime('%Y', date) instead.
//!
//! ## Usage
//!
//! ```
//! use vibesql_bench_common::tpch::{TPCHData, NATIONS, REGIONS, TPCH_Q1, TPCH_Q7_SQLITE};
//!
//! // Create data generator for scale factor 0.01
//! let data = TPCHData::new(0.01);
//!
//! // Get standard TPC-H Q1
//! let query = TPCH_Q1;
//!
//! // For SQLite, use variant queries for Q7, Q8, Q9
//! let query_sqlite = TPCH_Q7_SQLITE;
//! ```
pub use *;
pub use *;