This is an automated email from the ASF dual-hosted git repository.
prantogg pushed a commit to branch support-multipart
in repository https://gitbox.apache.org/repos/asf/sedona-spatialbench.git
The following commit(s) were added to refs/heads/support-multipart by this push:
new fd08337 Rename tpchgen to spatialbench and update related references
fd08337 is described below
commit fd083370691faf0b77e622fc906ec0bf524ae84f
Author: Pranav Toggi <[email protected]>
AuthorDate: Sat Oct 25 21:18:21 2025 -0700
Rename tpchgen to spatialbench and update related references
---
ARCHITECTURE.md | 12 +--
CONTRIBUTING.md | 2 +-
Cargo.toml | 6 +-
{tpchgen-arrow => spatialbench-arrow}/Cargo.toml | 6 +-
{tpchgen-arrow => spatialbench-arrow}/LICENSE | 0
{tpchgen-arrow => spatialbench-arrow}/README.md | 0
.../src/building.rs | 8 +-
.../src/conversions.rs | 8 +-
.../src/customer.rs | 8 +-
.../src/driver.rs | 8 +-
{tpchgen-arrow => spatialbench-arrow}/src/lib.rs | 4 +-
{tpchgen-arrow => spatialbench-arrow}/src/trip.rs | 2 +-
.../src/vehicle.rs | 8 +-
.../tests/reparse.rs | 6 +-
{tpchgen-cli => spatialbench-cli}/CONFIGURATION.md | 6 +-
{tpchgen-cli => spatialbench-cli}/Cargo.toml | 6 +-
{tpchgen-cli => spatialbench-cli}/README.md | 0
{tpchgen-cli => spatialbench-cli}/pyproject.toml | 2 +-
{tpchgen-cli => spatialbench-cli}/src/csv.rs | 4 +-
{tpchgen-cli => spatialbench-cli}/src/generate.rs | 2 +-
{tpchgen-cli => spatialbench-cli}/src/main.rs | 18 ++---
.../src/output_plan.rs | 0
{tpchgen-cli => spatialbench-cli}/src/parquet.rs | 2 +-
{tpchgen-cli => spatialbench-cli}/src/plan.rs | 8 +-
{tpchgen-cli => spatialbench-cli}/src/runner.rs | 4 +-
.../src/spatial_config_file.rs | 2 +-
.../src/statistics.rs | 0
{tpchgen-cli => spatialbench-cli}/src/tbl.rs | 2 +-
.../src/zone/config.rs | 0
.../src/zone/datasource.rs | 0
{tpchgen-cli => spatialbench-cli}/src/zone/main.rs | 0
{tpchgen-cli => spatialbench-cli}/src/zone/mod.rs | 0
.../src/zone/partition.rs | 0
.../src/zone/stats.rs | 0
.../src/zone/transform.rs | 0
.../src/zone/writer.rs | 0
.../tests/cli_integration.rs | 84 ++++++++++-----------
{tpchgen => spatialbench}/Cargo.toml | 4 +-
{tpchgen => spatialbench}/data/README.md | 0
.../data/sf-v1/building.tbl.gz | Bin
.../data/sf-v1/customer.tbl.gz | Bin
{tpchgen => spatialbench}/data/sf-v1/driver.tbl.gz | Bin
{tpchgen => spatialbench}/data/sf-v1/trip.tbl.gz | Bin
.../data/sf-v1/vehicle.tbl.gz | Bin
{tpchgen => spatialbench}/data/sf-v1/zone.parquet | Bin
{tpchgen => spatialbench}/src/csv.rs | 20 ++---
{tpchgen => spatialbench}/src/dates.rs | 2 +-
{tpchgen => spatialbench}/src/decimal.rs | 2 +-
{tpchgen => spatialbench}/src/distribution.rs | 0
{tpchgen => spatialbench}/src/dists.dss | 0
{tpchgen => spatialbench}/src/generators.rs | 0
{tpchgen => spatialbench}/src/kde.rs | 0
{tpchgen => spatialbench}/src/lib.rs | 2 +-
.../src/q_and_a/answers_sf1.rs | 0
{tpchgen => spatialbench}/src/q_and_a/mod.rs | 0
{tpchgen => spatialbench}/src/q_and_a/queries.rs | 0
{tpchgen => spatialbench}/src/random.rs | 0
{tpchgen => spatialbench}/src/spatial/cache.rs | 0
{tpchgen => spatialbench}/src/spatial/config.rs | 0
{tpchgen => spatialbench}/src/spatial/defaults.rs | 0
.../src/spatial/distributions.rs | 0
{tpchgen => spatialbench}/src/spatial/generator.rs | 0
{tpchgen => spatialbench}/src/spatial/geometry.rs | 0
{tpchgen => spatialbench}/src/spatial/mod.rs | 0
{tpchgen => spatialbench}/src/spatial/overrides.rs | 0
.../src/spatial/utils/affine.rs | 0
.../src/spatial/utils/continent.rs | 0
{tpchgen => spatialbench}/src/spatial/utils/mod.rs | 0
.../src/spatial/utils/random.rs | 0
{tpchgen => spatialbench}/src/text.rs | 0
.../tests/integration_tests.rs | 4 +-
71 files changed, 126 insertions(+), 126 deletions(-)
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index c8c11ce..2b29dc7 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -3,20 +3,20 @@
## Crate Organization
The project is organized into two crates:
-1. `tpchgen`: The core library that implements the data generation logic for
SpatialBench.
-2. `tpchgen-arrow`: Generates the Spatial Bench data directly as the [Apache
Arrow](https://arrow.apache.org/) in memory format
-3. `tpchgen-cli`: A CLI tool that uses the `tpchgen` library to generate
SpatialBench data.
+1. `spatialbench`: The core library that implements the data generation logic
for SpatialBench.
+2. `spatialbench-arrow`: Generates the Spatial Bench data directly as the
[Apache Arrow](https://arrow.apache.org/) in memory format
+3. `spatialbench-cli`: A CLI tool that uses the `spatialbench` library to
generate SpatialBench data.
## Dependencies
-The `tpchgen` crate is designed to be embeddable in as many locations as
+The `spatialbench` crate is designed to be embeddable in as many locations as
possible and thus has no dependencies by design. For example, it does
not depend on arrow or parquet crates or display libraries.
-`tpchgen-arrow` is similarly designed to be embeddable with minimal
dependencies
+`spatialbench-arrow` is similarly designed to be embeddable with minimal
dependencies
and only depends on the [`arrow` crate](https://docs.rs/arrow)
-The `tpchgen-cli` crate is designed to include many useful features, and thus
+The `spatialbench-cli` crate is designed to include many useful features, and
thus
has many more dependencies.
## Performance
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bf5d974..4d1292b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -6,7 +6,7 @@ free to open an issue.
## Our Development Process
-To contribute, please find [an existing GitHub issue or open a new
one](https://github.com/apache/sedona-tpchgen/issues). Claiming the issue you
are working on helps us better track progress.
+To contribute, please find [an existing GitHub issue or open a new
one](https://github.com/apache/sedona-spatialbench/issues). Claiming the issue
you are working on helps us better track progress.
## Pull Requests
diff --git a/Cargo.toml b/Cargo.toml
index ad7a225..19cbd9a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,16 +1,16 @@
[workspace]
-members = ["tpchgen", "tpchgen-arrow", "tpchgen-cli"]
+members = ["spatialbench", "spatialbench-arrow", "spatialbench-cli"]
resolver = "2"
[workspace.package]
authors = ["clflushopt", "alamb"]
edition = "2021"
-homepage = "https://github.com/wherobots/sedona-tpchgen"
+homepage = "https://github.com/wherobots/sedona-spatialbench"
license = "Apache-2.0"
readme = "README.md"
-repository = "https://github.com/wherobots/sedona-tpchgen"
+repository = "https://github.com/wherobots/sedona-spatialbench"
version = "1.1.1"
[workspace.dependencies]
diff --git a/tpchgen-arrow/Cargo.toml b/spatialbench-arrow/Cargo.toml
similarity index 71%
rename from tpchgen-arrow/Cargo.toml
rename to spatialbench-arrow/Cargo.toml
index ba5fed6..5a6a686 100644
--- a/tpchgen-arrow/Cargo.toml
+++ b/spatialbench-arrow/Cargo.toml
@@ -1,16 +1,16 @@
[package]
-name = "tpchgen-arrow"
+name = "spatialbench-arrow"
version = "1.1.1"
edition = "2024"
authors = ["clflushopt", "alamb"]
description = "TPC-H data generator into Apache Arrow format"
-repository = "https://github.com/wherobots/sedona-tpchgen"
+repository = "https://github.com/wherobots/sedona-spatialbench"
readme = "README.md"
license = "Apache-2.0"
[dependencies]
arrow = { version = "56", default-features = false, features = ["prettyprint"]
}
-tpchgen = { path = "../tpchgen", version = "1.1.1" }
+spatialbench = { path = "../spatialbench", version = "1.1.1" }
geo = { workspace = true }
geozero = { workspace = true }
diff --git a/tpchgen-arrow/LICENSE b/spatialbench-arrow/LICENSE
similarity index 100%
rename from tpchgen-arrow/LICENSE
rename to spatialbench-arrow/LICENSE
diff --git a/tpchgen-arrow/README.md b/spatialbench-arrow/README.md
similarity index 100%
rename from tpchgen-arrow/README.md
rename to spatialbench-arrow/README.md
diff --git a/tpchgen-arrow/src/building.rs b/spatialbench-arrow/src/building.rs
similarity index 91%
rename from tpchgen-arrow/src/building.rs
rename to spatialbench-arrow/src/building.rs
index 1814edd..70f3e20 100644
--- a/tpchgen-arrow/src/building.rs
+++ b/spatialbench-arrow/src/building.rs
@@ -5,16 +5,16 @@ use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use geo::Geometry;
use geozero::{CoordDimensions, ToWkb};
use std::sync::{Arc, LazyLock};
-use tpchgen::generators::{BuildingGenerator, BuildingGeneratorIterator};
+use spatialbench::generators::{BuildingGenerator, BuildingGeneratorIterator};
/// Generate [`Building`]s in [`RecordBatch`] format
///
-/// [`Building`]: tpchgen::generators::Building
+/// [`Building`]: spatialbench::generators::Building
///
/// # Example
/// ```
-/// # use tpchgen::generators::{BuildingGenerator};
-/// # use tpchgen_arrow::BuildingArrow;
+/// # use spatialbench::generators::{BuildingGenerator};
+/// # use spatialbench_arrow::BuildingArrow;
///
/// // Create a SF=1.0 generator and wrap it in an Arrow generator
/// let generator = BuildingGenerator::new(1.0, 1, 1);
diff --git a/tpchgen-arrow/src/conversions.rs
b/spatialbench-arrow/src/conversions.rs
similarity index 95%
rename from tpchgen-arrow/src/conversions.rs
rename to spatialbench-arrow/src/conversions.rs
index c3ba64e..db727f8 100644
--- a/tpchgen-arrow/src/conversions.rs
+++ b/spatialbench-arrow/src/conversions.rs
@@ -2,8 +2,8 @@
use arrow::array::{StringViewArray, StringViewBuilder};
use std::fmt::Write;
-use tpchgen::dates::TPCHDate;
-use tpchgen::decimal::TPCHDecimal;
+use spatialbench::dates::TPCHDate;
+use spatialbench::decimal::TPCHDecimal;
/// Convert a TPCHDecimal to an Arrow Decimal(15,2)
#[inline(always)]
@@ -20,7 +20,7 @@ pub fn to_arrow_decimal(value: TPCHDecimal) -> i128 {
///
/// ```
/// use chrono::NaiveDate;
-/// use tpchgen::dates::TPCHDate;
+/// use spatialbench::dates::TPCHDate;
/// let arrow_epoch = NaiveDate::from_ymd_opt(1970, 1, 1).unwrap();
/// let tpch_epoch = NaiveDate::from_ymd_opt(1992, 1, 1).unwrap();
/// // the difference between the two epochs is 8035 days
@@ -74,7 +74,7 @@ where
#[cfg(test)]
mod tests {
use super::*;
- use tpchgen::dates::MIN_GENERATE_DATE;
+ use spatialbench::dates::MIN_GENERATE_DATE;
#[test]
fn test_to_arrow_decimal() {
diff --git a/tpchgen-arrow/src/customer.rs b/spatialbench-arrow/src/customer.rs
similarity index 95%
rename from tpchgen-arrow/src/customer.rs
rename to spatialbench-arrow/src/customer.rs
index 4e2e6be..2e3afd3 100644
--- a/tpchgen-arrow/src/customer.rs
+++ b/spatialbench-arrow/src/customer.rs
@@ -3,16 +3,16 @@ use crate::{DEFAULT_BATCH_SIZE, RecordBatchIterator};
use arrow::array::{Int64Array, RecordBatch, StringViewArray};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use std::sync::{Arc, LazyLock};
-use tpchgen::generators::{CustomerGenerator, CustomerGeneratorIterator};
+use spatialbench::generators::{CustomerGenerator, CustomerGeneratorIterator};
/// Generate [`Customer`]s in [`RecordBatch`] format
///
-/// [`Customer`]: tpchgen::generators::Customer
+/// [`Customer`]: spatialbench::generators::Customer
///
/// # Example
/// ```
-/// # use tpchgen::generators::{CustomerGenerator};
-/// # use tpchgen_arrow::CustomerArrow;
+/// # use spatialbench::generators::{CustomerGenerator};
+/// # use spatialbench_arrow::CustomerArrow;
///
/// // Create a SF=1.0 generator and wrap it in an Arrow generator
/// let generator = CustomerGenerator::new(1.0, 1, 1);
diff --git a/tpchgen-arrow/src/driver.rs b/spatialbench-arrow/src/driver.rs
similarity index 95%
rename from tpchgen-arrow/src/driver.rs
rename to spatialbench-arrow/src/driver.rs
index af760a4..faca825 100644
--- a/tpchgen-arrow/src/driver.rs
+++ b/spatialbench-arrow/src/driver.rs
@@ -3,16 +3,16 @@ use crate::{DEFAULT_BATCH_SIZE, RecordBatchIterator};
use arrow::array::{Int64Array, RecordBatch, StringViewArray};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use std::sync::{Arc, LazyLock};
-use tpchgen::generators::{DriverGenerator, DriverGeneratorIterator};
+use spatialbench::generators::{DriverGenerator, DriverGeneratorIterator};
/// Generate [`Driver`]s in [`RecordBatch`] format
///
-/// [`Driver`]: tpchgen::generators::Driver
+/// [`Driver`]: spatialbench::generators::Driver
///
/// # Example:
/// ```
-/// # use tpchgen::generators::{DriverGenerator};
-/// # use tpchgen_arrow::DriverArrow;
+/// # use spatialbench::generators::{DriverGenerator};
+/// # use spatialbench_arrow::DriverArrow;
///
/// // Create a SF=1.0 generator and wrap it in an Arrow generator
/// let generator = DriverGenerator::new(1.0, 1, 1);
diff --git a/tpchgen-arrow/src/lib.rs b/spatialbench-arrow/src/lib.rs
similarity index 98%
rename from tpchgen-arrow/src/lib.rs
rename to spatialbench-arrow/src/lib.rs
index d6f02f2..ac6fb78 100644
--- a/tpchgen-arrow/src/lib.rs
+++ b/spatialbench-arrow/src/lib.rs
@@ -6,8 +6,8 @@
//!
//! # Example
//! ```
-//! # use tpchgen::generators::TripGenerator;
-//! # use tpchgen_arrow::TripArrow;
+//! # use spatialbench::generators::TripGenerator;
+//! # use spatialbench_arrow::TripArrow;
//! # use arrow::util::pretty::pretty_format_batches;
//! // Create a SF=0.01 generator for the LineItem table
//! let generator = TripGenerator::new(0.01, 1, 1);
diff --git a/tpchgen-arrow/src/trip.rs b/spatialbench-arrow/src/trip.rs
similarity index 98%
rename from tpchgen-arrow/src/trip.rs
rename to spatialbench-arrow/src/trip.rs
index 157a752..c034bfc 100644
--- a/tpchgen-arrow/src/trip.rs
+++ b/spatialbench-arrow/src/trip.rs
@@ -5,7 +5,7 @@ use arrow::datatypes::{DataType, Field, Schema, SchemaRef,
TimeUnit};
use geo::Geometry;
use geozero::{CoordDimensions, ToWkb};
use std::sync::{Arc, LazyLock, Mutex};
-use tpchgen::generators::{Trip, TripGenerator, TripGeneratorIterator};
+use spatialbench::generators::{Trip, TripGenerator, TripGeneratorIterator};
// Thread-safe wrapper for TripGeneratorIterator
struct ThreadSafeTripGenerator {
diff --git a/tpchgen-arrow/src/vehicle.rs b/spatialbench-arrow/src/vehicle.rs
similarity index 95%
rename from tpchgen-arrow/src/vehicle.rs
rename to spatialbench-arrow/src/vehicle.rs
index bc09cda..a15c400 100644
--- a/tpchgen-arrow/src/vehicle.rs
+++ b/spatialbench-arrow/src/vehicle.rs
@@ -3,16 +3,16 @@ use crate::{DEFAULT_BATCH_SIZE, RecordBatchIterator};
use arrow::array::{Int64Array, RecordBatch, StringViewArray};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use std::sync::{Arc, LazyLock};
-use tpchgen::generators::{VehicleGenerator, VehicleGeneratorIterator};
+use spatialbench::generators::{VehicleGenerator, VehicleGeneratorIterator};
/// Generate [`Vehicle`]s in [`RecordBatch`] format
///
-/// [`Vehicle`]: tpchgen::generators::Vehicle
+/// [`Vehicle`]: spatialbench::generators::Vehicle
///
/// # Example
/// ```
-/// # use tpchgen::generators::{VehicleGenerator};
-/// # use tpchgen_arrow::VehicleArrow;
+/// # use spatialbench::generators::{VehicleGenerator};
+/// # use spatialbench_arrow::VehicleArrow;
///
/// // Create a SF=1.0 generator and wrap it in an Arrow generator
/// let generator = VehicleGenerator::new(1.0, 1, 1);
diff --git a/tpchgen-arrow/tests/reparse.rs
b/spatialbench-arrow/tests/reparse.rs
similarity index 98%
rename from tpchgen-arrow/tests/reparse.rs
rename to spatialbench-arrow/tests/reparse.rs
index 70d924d..5325813 100644
--- a/tpchgen-arrow/tests/reparse.rs
+++ b/spatialbench-arrow/tests/reparse.rs
@@ -5,12 +5,12 @@ use arrow::array::RecordBatch;
use arrow::datatypes::SchemaRef;
use std::io::Write;
use std::sync::Arc;
-use tpchgen::csv::{BuildingCsv, CustomerCsv, DriverCsv, TripCsv, VehicleCsv};
-use tpchgen::generators::{
+use spatialbench::csv::{BuildingCsv, CustomerCsv, DriverCsv, TripCsv,
VehicleCsv};
+use spatialbench::generators::{
Building, BuildingGenerator, Customer, CustomerGenerator, Driver,
DriverGenerator, Trip,
TripGenerator, Vehicle, VehicleGenerator,
};
-use tpchgen_arrow::{
+use spatialbench_arrow::{
BuildingArrow, CustomerArrow, DriverArrow, RecordBatchIterator, TripArrow,
VehicleArrow,
};
diff --git a/tpchgen-cli/CONFIGURATION.md b/spatialbench-cli/CONFIGURATION.md
similarity index 98%
rename from tpchgen-cli/CONFIGURATION.md
rename to spatialbench-cli/CONFIGURATION.md
index 293a4d6..d897647 100644
--- a/tpchgen-cli/CONFIGURATION.md
+++ b/spatialbench-cli/CONFIGURATION.md
@@ -33,7 +33,7 @@ Reference: [SpiderWeb: A Spatial Data Generator on the
Web](https://dl.acm.org/d
## Using Configuration in the CLI
```bash
-tpchgen-cli -s 1 --tables trip,building --config tpchgen-config.yaml
+spatialbench-cli -s 1 --tables trip,building --config spatialbench-config.yaml
```
If --config is omitted, SpatialBench will try a local default and then fall
back to built-ins (see [Configuration Resolution &
Logging](#configuration-resolution--logging)).
@@ -109,7 +109,7 @@ Each entry must conform to the configuration schema:
## Default Configs
The repository includes a ready-to-use default file:
-[`tpchgen-config.yml`](../tpchgen-config.yml).
+[`spatialbench-config.yml`](../spatialbench-config.yml).
These defaults are automatically used if no `--config` is passed and the file
exists in the current working directory.
@@ -132,5 +132,5 @@ This allows for:
When SpatialBench starts, it resolves configuration in this order:
1. Explicit config: If --config <path> is provided, that file is used.
-2. Local default: If no flag is provided, SpatialBench looks for
./tpchgen-config.yml in the current directory.
+2. Local default: If no flag is provided, SpatialBench looks for
./spatialbench-config.yml in the current directory.
3. Built-ins: If neither is found, it uses compiled defaults from the built-in
configuration.
diff --git a/tpchgen-cli/Cargo.toml b/spatialbench-cli/Cargo.toml
similarity index 83%
rename from tpchgen-cli/Cargo.toml
rename to spatialbench-cli/Cargo.toml
index 4e1df54..5c568b6 100644
--- a/tpchgen-cli/Cargo.toml
+++ b/spatialbench-cli/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "tpchgen-cli"
+name = "spatialbench-cli"
version = "1.1.1"
authors = { workspace = true }
description = "Blazing fast pure Rust TPC-H data generator command line tool."
@@ -13,8 +13,8 @@ repository = { workspace = true }
arrow = "56"
parquet = "56"
clap = { version = "4.5.32", features = ["derive"] }
-tpchgen = { path = "../tpchgen", version = "1.1.1"}
-tpchgen-arrow = { path = "../tpchgen-arrow", version = "1.1.1" }
+spatialbench = { path = "../spatialbench", version = "1.1.1"}
+spatialbench-arrow = { path = "../spatialbench-arrow", version = "1.1.1" }
tokio = { version = "1.44.1", features = ["full"]}
futures = "0.3.31"
num_cpus = "1.0"
diff --git a/tpchgen-cli/README.md b/spatialbench-cli/README.md
similarity index 100%
rename from tpchgen-cli/README.md
rename to spatialbench-cli/README.md
diff --git a/tpchgen-cli/pyproject.toml b/spatialbench-cli/pyproject.toml
similarity index 91%
rename from tpchgen-cli/pyproject.toml
rename to spatialbench-cli/pyproject.toml
index 802720c..2edba14 100644
--- a/tpchgen-cli/pyproject.toml
+++ b/spatialbench-cli/pyproject.toml
@@ -3,7 +3,7 @@ requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[project]
-name = "tpchgen-cli"
+name = "spatialbench-cli"
dynamic = ["version"]
description = "Python CLI for Spatial Bench data generator"
requires-python = ">=3.8"
diff --git a/tpchgen-cli/src/csv.rs b/spatialbench-cli/src/csv.rs
similarity index 93%
rename from tpchgen-cli/src/csv.rs
rename to spatialbench-cli/src/csv.rs
index cbc9fcc..0d96ef4 100644
--- a/tpchgen-cli/src/csv.rs
+++ b/spatialbench-cli/src/csv.rs
@@ -1,8 +1,8 @@
//! Implementations of [`Source`] for generating data in TBL format
use super::generate::Source;
use std::io::Write;
-use tpchgen::csv::{BuildingCsv, CustomerCsv, DriverCsv, TripCsv, VehicleCsv};
-use tpchgen::generators::{
+use spatialbench::csv::{BuildingCsv, CustomerCsv, DriverCsv, TripCsv,
VehicleCsv};
+use spatialbench::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
diff --git a/tpchgen-cli/src/generate.rs b/spatialbench-cli/src/generate.rs
similarity index 99%
rename from tpchgen-cli/src/generate.rs
rename to spatialbench-cli/src/generate.rs
index 81ff97c..bbe3cef 100644
--- a/tpchgen-cli/src/generate.rs
+++ b/spatialbench-cli/src/generate.rs
@@ -12,7 +12,7 @@ use tokio::task::JoinSet;
/// Something that knows how to generate data into a buffer
///
-/// For example, this is implemented for the different generators in the
tpchgen
+/// For example, this is implemented for the different generators in the
spatialbench
/// crate
pub trait Source: Send {
/// generates the data for this generator into the buffer, returning the
buffer.
diff --git a/tpchgen-cli/src/main.rs b/spatialbench-cli/src/main.rs
similarity index 96%
rename from tpchgen-cli/src/main.rs
rename to spatialbench-cli/src/main.rs
index d95f594..8db2436 100644
--- a/tpchgen-cli/src/main.rs
+++ b/spatialbench-cli/src/main.rs
@@ -32,19 +32,19 @@ use std::io::{self, BufWriter, Stdout, Write};
use std::path::PathBuf;
use std::str::FromStr;
use std::time::Instant;
-use tpchgen::distribution::Distributions;
-use tpchgen::spatial::overrides::{set_overrides, SpatialOverrides};
-use tpchgen::text::TextPool;
+use spatialbench::distribution::Distributions;
+use spatialbench::spatial::overrides::{set_overrides, SpatialOverrides};
+use spatialbench::text::TextPool;
#[derive(Parser)]
-#[command(name = "tpchgen")]
+#[command(name = "spatialbench")]
#[command(version)]
#[command(
// -h output
about = "TPC-H Data Generator",
// --help output
long_about = r#"
-TPCH Data Generator (https://github.com/clflushopt/tpchgen-rs)
+TPCH Data Generator (https://github.com/clflushopt/spatialbench-rs)
By default each table is written to a single file named
<output_dir>/<table>.<format>
@@ -55,16 +55,16 @@ Examples
# Generate all tables at scale factor 1 (1GB) in TBL format to /tmp/tpch
directory:
-tpchgen-cli -s 1 --output-dir=/tmp/tpch
+spatialbench-cli -s 1 --output-dir=/tmp/tpch
# Generate the lineitem table at scale factor 100 in 10 Apache Parquet files to
# /tmp/tpch/lineitem
-tpchgen-cli -s 100 --tables=lineitem --format=parquet --parts=10
--output-dir=/tmp/tpch
+spatialbench-cli -s 100 --tables=lineitem --format=parquet --parts=10
--output-dir=/tmp/tpch
# Generate scale factor one in current directory, seeing debug output
-RUST_LOG=debug tpchgen -s 1
+RUST_LOG=debug spatialbench -s 1
"#
)]
struct Cli {
@@ -268,7 +268,7 @@ impl Cli {
Some(path.clone())
} else {
// Look for default config file in current directory
- let default_config = PathBuf::from("tpchgen-config.yml");
+ let default_config = PathBuf::from("spatialbench-config.yml");
if default_config.exists() {
Some(default_config)
} else {
diff --git a/tpchgen-cli/src/output_plan.rs
b/spatialbench-cli/src/output_plan.rs
similarity index 100%
rename from tpchgen-cli/src/output_plan.rs
rename to spatialbench-cli/src/output_plan.rs
diff --git a/tpchgen-cli/src/parquet.rs b/spatialbench-cli/src/parquet.rs
similarity index 99%
rename from tpchgen-cli/src/parquet.rs
rename to spatialbench-cli/src/parquet.rs
index 767aff4..0807f70 100644
--- a/tpchgen-cli/src/parquet.rs
+++ b/spatialbench-cli/src/parquet.rs
@@ -14,7 +14,7 @@ use std::io;
use std::io::Write;
use std::sync::Arc;
use tokio::sync::mpsc::{Receiver, Sender};
-use tpchgen_arrow::RecordBatchIterator;
+use spatialbench_arrow::RecordBatchIterator;
pub trait IntoSize {
/// Convert the object into a size
diff --git a/tpchgen-cli/src/plan.rs b/spatialbench-cli/src/plan.rs
similarity index 99%
rename from tpchgen-cli/src/plan.rs
rename to spatialbench-cli/src/plan.rs
index 45822d3..779a4ec 100644
--- a/tpchgen-cli/src/plan.rs
+++ b/spatialbench-cli/src/plan.rs
@@ -4,14 +4,14 @@ use crate::{OutputFormat, Table};
use log::debug;
use std::fmt::Display;
use std::ops::RangeInclusive;
-use tpchgen::generators::{
+use spatialbench::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
/// A list of generator "parts" (data generator chunks, not TPCH parts) for a
/// single output file.
///
-/// Controls the parallelization and layout of Parquet files in `tpchgen-cli`.
+/// Controls the parallelization and layout of Parquet files in
`spatialbench-cli`.
///
/// # Background
///
@@ -31,9 +31,9 @@ use tpchgen::generators::{
/// 2. They scale. So for example, parts `0..10` with a `part_count` of 50
/// will generate the same data as parts `1` with a `part_count` of 5.
///
-/// # Implication for tpchgen-cli
+/// # Implication for spatialbench-cli
///
-/// For `tbl` and `csv` files, tpchgen-cli generates `num-threads` parts in
+/// For `tbl` and `csv` files, spatialbench-cli generates `num-threads` parts
in
/// parallel.
///
/// For Parquet files, the output file has one row group for each "part".
diff --git a/tpchgen-cli/src/runner.rs b/spatialbench-cli/src/runner.rs
similarity index 99%
rename from tpchgen-cli/src/runner.rs
rename to spatialbench-cli/src/runner.rs
index e62ba78..b7da61b 100644
--- a/tpchgen-cli/src/runner.rs
+++ b/spatialbench-cli/src/runner.rs
@@ -10,10 +10,10 @@ use log::{debug, info};
use std::io;
use std::io::BufWriter;
use tokio::task::{JoinError, JoinSet};
-use tpchgen::generators::{
+use spatialbench::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
-use tpchgen_arrow::{
+use spatialbench_arrow::{
BuildingArrow, CustomerArrow, DriverArrow, RecordBatchIterator, TripArrow,
VehicleArrow,
};
diff --git a/tpchgen-cli/src/spatial_config_file.rs
b/spatialbench-cli/src/spatial_config_file.rs
similarity index 99%
rename from tpchgen-cli/src/spatial_config_file.rs
rename to spatialbench-cli/src/spatial_config_file.rs
index 91ececd..c67f94d 100644
--- a/tpchgen-cli/src/spatial_config_file.rs
+++ b/spatialbench-cli/src/spatial_config_file.rs
@@ -3,7 +3,7 @@ use serde::de::{self, Visitor};
use serde::{Deserialize, Deserializer};
use std::fmt;
use std::sync::OnceLock;
-use tpchgen::spatial::{
+use spatialbench::spatial::{
DistributionParams, DistributionType, GeomType, SpatialConfig,
SpatialGenerator,
};
diff --git a/tpchgen-cli/src/statistics.rs b/spatialbench-cli/src/statistics.rs
similarity index 100%
rename from tpchgen-cli/src/statistics.rs
rename to spatialbench-cli/src/statistics.rs
diff --git a/tpchgen-cli/src/tbl.rs b/spatialbench-cli/src/tbl.rs
similarity index 97%
rename from tpchgen-cli/src/tbl.rs
rename to spatialbench-cli/src/tbl.rs
index 7790f1c..e98d344 100644
--- a/tpchgen-cli/src/tbl.rs
+++ b/spatialbench-cli/src/tbl.rs
@@ -2,7 +2,7 @@
use super::generate::Source;
use std::io::Write;
-use tpchgen::generators::{
+use spatialbench::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
diff --git a/tpchgen-cli/src/zone/config.rs
b/spatialbench-cli/src/zone/config.rs
similarity index 100%
rename from tpchgen-cli/src/zone/config.rs
rename to spatialbench-cli/src/zone/config.rs
diff --git a/tpchgen-cli/src/zone/datasource.rs
b/spatialbench-cli/src/zone/datasource.rs
similarity index 100%
rename from tpchgen-cli/src/zone/datasource.rs
rename to spatialbench-cli/src/zone/datasource.rs
diff --git a/tpchgen-cli/src/zone/main.rs b/spatialbench-cli/src/zone/main.rs
similarity index 100%
rename from tpchgen-cli/src/zone/main.rs
rename to spatialbench-cli/src/zone/main.rs
diff --git a/tpchgen-cli/src/zone/mod.rs b/spatialbench-cli/src/zone/mod.rs
similarity index 100%
rename from tpchgen-cli/src/zone/mod.rs
rename to spatialbench-cli/src/zone/mod.rs
diff --git a/tpchgen-cli/src/zone/partition.rs
b/spatialbench-cli/src/zone/partition.rs
similarity index 100%
rename from tpchgen-cli/src/zone/partition.rs
rename to spatialbench-cli/src/zone/partition.rs
diff --git a/tpchgen-cli/src/zone/stats.rs b/spatialbench-cli/src/zone/stats.rs
similarity index 100%
rename from tpchgen-cli/src/zone/stats.rs
rename to spatialbench-cli/src/zone/stats.rs
diff --git a/tpchgen-cli/src/zone/transform.rs
b/spatialbench-cli/src/zone/transform.rs
similarity index 100%
rename from tpchgen-cli/src/zone/transform.rs
rename to spatialbench-cli/src/zone/transform.rs
diff --git a/tpchgen-cli/src/zone/writer.rs
b/spatialbench-cli/src/zone/writer.rs
similarity index 100%
rename from tpchgen-cli/src/zone/writer.rs
rename to spatialbench-cli/src/zone/writer.rs
diff --git a/tpchgen-cli/tests/cli_integration.rs
b/spatialbench-cli/tests/cli_integration.rs
similarity index 92%
rename from tpchgen-cli/tests/cli_integration.rs
rename to spatialbench-cli/tests/cli_integration.rs
index 23947c0..5340c83 100644
--- a/tpchgen-cli/tests/cli_integration.rs
+++ b/spatialbench-cli/tests/cli_integration.rs
@@ -8,18 +8,18 @@ use std::io::Read;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use tempfile::tempdir;
-use tpchgen::generators::TripGenerator;
-use tpchgen_arrow::{RecordBatchIterator, TripArrow};
+use spatialbench::generators::TripGenerator;
+use spatialbench_arrow::{RecordBatchIterator, TripArrow};
-/// Test TBL output for scale factor 0.51 and 0.001 using tpchgen-cli
+/// Test TBL output for scale factor 0.51 and 0.001 using spatialbench-cli
/// A scale factor of 0.51 is used because a sf of 0.5 and below will yield 0
results in the Building table
#[test]
-fn test_tpchgen_cli_tbl_scale_factor_v1() {
+fn test_spatialbench_cli_tbl_scale_factor_v1() {
// Create a temporary directory
let temp_dir = tempdir().expect("Failed to create temporary directory");
// Generate driver, vehicle, customer, building with scale factor 0.51
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.51")
@@ -33,7 +33,7 @@ fn test_tpchgen_cli_tbl_scale_factor_v1() {
.success();
// Generate trip with scale factor 0.01
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.001")
@@ -68,7 +68,7 @@ fn test_tpchgen_cli_tbl_scale_factor_v1() {
.expect("Failed to convert generated contents to string");
// load the reference file
- let reference_file = format!("../tpchgen/data/sf-v1/{}.gz", file);
+ let reference_file = format!("../spatialbench/data/sf-v1/{}.gz", file);
let reference_contents = match
read_gzipped_file_to_string(&reference_file) {
Ok(contents) => contents,
Err(e) => {
@@ -86,12 +86,12 @@ fn test_tpchgen_cli_tbl_scale_factor_v1() {
/// Test that when creating output, if the file already exists it is not
overwritten
#[test]
-fn test_tpchgen_cli_tbl_no_overwrite() {
+fn test_spatialbench_cli_tbl_no_overwrite() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
let expected_file = temp_dir.path().join("trip.tbl");
let run_command = || {
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.001")
@@ -110,7 +110,7 @@ fn test_tpchgen_cli_tbl_no_overwrite() {
fs::metadata(&expected_file).expect("Failed to get metadata of
generated file");
assert_eq!(original_metadata.len(), 826311);
- // Run the tpchgen-cli command again with the same parameters and expect
the
+ // Run the spatialbench-cli command again with the same parameters and
expect the
// file to not be overwritten
run_command();
let new_metadata =
@@ -132,7 +132,7 @@ async fn test_zone_parquet_no_overwrite() {
let expected_file = temp_dir.path().join("zone/zone.1.parquet");
let run_command = || {
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("1")
@@ -153,7 +153,7 @@ async fn test_zone_parquet_no_overwrite() {
fs::metadata(&expected_file).expect("Failed to get metadata of
generated file");
assert_eq!(original_metadata.len(), 25400203);
- // Run the tpchgen-cli command again with the same parameters and expect
the
+ // Run the spatialbench-cli command again with the same parameters and
expect the
// file to not be overwritten
run_command();
@@ -172,12 +172,12 @@ async fn test_zone_parquet_no_overwrite() {
// Test that when creating output, if the file already exists it is not for
parquet
#[test]
-fn test_tpchgen_cli_parquet_no_overwrite() {
+fn test_spatialbench_cli_parquet_no_overwrite() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
let expected_file = temp_dir.path().join("building.parquet");
let run_command = || {
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.001")
@@ -194,7 +194,7 @@ fn test_tpchgen_cli_parquet_no_overwrite() {
fs::metadata(&expected_file).expect("Failed to get metadata of
generated file");
assert_eq!(original_metadata.len(), 412);
- // Run the tpchgen-cli command again with the same parameters and expect
the
+ // Run the spatialbench-cli command again with the same parameters and
expect the
// file to not be overwritten
run_command();
@@ -216,7 +216,7 @@ fn test_tpchgen_cli_parquet_no_overwrite() {
async fn test_zone_deterministic_parts_generation() {
let temp_dir1 = tempdir().expect("Failed to create temporary directory 1");
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--format")
.arg("parquet")
@@ -236,7 +236,7 @@ async fn test_zone_deterministic_parts_generation() {
let zone_file1 = temp_dir1.path().join("zone/zone.1.parquet");
// Reference file is a sf=0.01 zone table with z_boundary column removed
- let reference_file = PathBuf::from("../tpchgen/data/sf-v1/zone.parquet");
+ let reference_file =
PathBuf::from("../spatialbench/data/sf-v1/zone.parquet");
assert!(
zone_file1.exists(),
@@ -319,15 +319,15 @@ async fn test_zone_deterministic_parts_generation() {
/// Test generating the trip table using 4 parts implicitly
#[test]
-fn test_tpchgen_cli_parts() {
+fn test_spatialbench_cli_parts() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
// generate 4 parts of the trip table with scale factor 0.001 and let
- // tpchgen-cli generate the multiple files
+ // spatialbench-cli generate the multiple files
let num_parts = 4;
let output_dir = temp_dir.path().to_path_buf();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.001")
@@ -348,7 +348,7 @@ fn test_tpchgen_cli_parts() {
/// Test generating the order table with multiple invocations using --parts and
/// --part options
#[test]
-fn test_tpchgen_cli_parts_explicit() {
+fn test_spatialbench_cli_parts_explicit() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
// generate 4 parts of the orders table with scale factor 0.001
@@ -358,9 +358,9 @@ fn test_tpchgen_cli_parts_explicit() {
for part in 1..=num_parts {
let output_dir = temp_dir.path().to_path_buf();
threads.push(std::thread::spawn(move || {
- // Run the tpchgen-cli command for each part
+ // Run the spatialbench-cli command for each part
// output goes into `output_dir/orders/orders.{part}.tbl`
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.001")
@@ -387,12 +387,12 @@ fn test_tpchgen_cli_parts_explicit() {
/// Create all tables using --parts option and verify the output layouts
#[test]
-fn test_tpchgen_cli_parts_all_tables() {
+fn test_spatialbench_cli_parts_all_tables() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
let num_parts = 8;
let output_dir = temp_dir.path().to_path_buf();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.51")
@@ -407,7 +407,7 @@ fn test_tpchgen_cli_parts_all_tables() {
.assert()
.success();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("0.001")
@@ -460,7 +460,7 @@ async fn test_write_parquet_trips() {
// Run the CLI command to generate parquet data
let output_dir = tempdir().unwrap();
let output_path = output_dir.path().join("trip.parquet");
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--tables")
.arg("trip")
@@ -504,7 +504,7 @@ async fn test_write_parquet_trips() {
async fn test_write_parquet_row_group_size_default() {
// Run the CLI command to generate parquet data with default settings
let output_dir = tempdir().unwrap();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("1")
@@ -546,7 +546,7 @@ async fn test_write_parquet_row_group_size_default() {
async fn test_zone_write_parquet_row_group_size_default() {
// Run the CLI command to generate parquet data with default settings
let output_dir = tempdir().unwrap();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--format")
.arg("parquet")
@@ -576,7 +576,7 @@ async fn test_zone_write_parquet_row_group_size_default() {
async fn test_write_parquet_row_group_size_20mb() {
// Run the CLI command to generate parquet data with larger row group size
let output_dir = tempdir().unwrap();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--scale-factor")
.arg("1")
@@ -624,7 +624,7 @@ async fn test_write_parquet_row_group_size_20mb() {
async fn test_zone_write_parquet_row_group_size_20mb() {
// Run the CLI command to generate parquet data with larger row group size
let output_dir = tempdir().unwrap();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--format")
.arg("parquet")
@@ -653,11 +653,11 @@ async fn test_zone_write_parquet_row_group_size_20mb() {
}
#[test]
-fn test_tpchgen_cli_part_no_parts() {
+fn test_spatialbench_cli_part_no_parts() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
// CLI Error test --part but not --parts
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--output-dir")
.arg(temp_dir.path())
@@ -671,11 +671,11 @@ fn test_tpchgen_cli_part_no_parts() {
}
#[test]
-fn test_tpchgen_cli_too_many_parts() {
+fn test_spatialbench_cli_too_many_parts() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
// This should fail because --part is 42 which is more than the --parts 10
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--output-dir")
.arg(temp_dir.path())
@@ -691,10 +691,10 @@ fn test_tpchgen_cli_too_many_parts() {
}
#[test]
-fn test_tpchgen_cli_zero_part() {
+fn test_spatialbench_cli_zero_part() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--output-dir")
.arg(temp_dir.path())
@@ -709,10 +709,10 @@ fn test_tpchgen_cli_zero_part() {
));
}
#[test]
-fn test_tpchgen_cli_zero_part_zero_parts() {
+fn test_spatialbench_cli_zero_part_zero_parts() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--output-dir")
.arg(temp_dir.path())
@@ -731,7 +731,7 @@ fn test_tpchgen_cli_zero_part_zero_parts() {
#[tokio::test]
async fn test_incompatible_options_warnings() {
let output_dir = tempdir().unwrap();
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--format")
.arg("csv")
@@ -761,7 +761,7 @@ async fn test_incompatible_options_warnings() {
fn test_zone_generation_tbl_fails() {
let temp_dir = tempdir().expect("Failed to create temporary directory");
- Command::cargo_bin("tpchgen-cli")
+ Command::cargo_bin("spatialbench-cli")
.expect("Binary not found")
.arg("--format")
.arg("tbl")
@@ -792,7 +792,7 @@ fn read_gzipped_file_to_string<P: AsRef<Path>>(path: P) ->
Result<String, std::i
///
/// example usage: `read_reference_file("trip", "0.1")`
fn read_reference_file(table_name: &str, scale_factor: &str) -> String {
- let reference_file =
format!("../tpchgen/data/sf-{scale_factor}/{table_name}.tbl.gz");
+ let reference_file =
format!("../spatialbench/data/sf-{scale_factor}/{table_name}.tbl.gz");
match read_gzipped_file_to_string(&reference_file) {
Ok(contents) => contents,
Err(e) => {
diff --git a/tpchgen/Cargo.toml b/spatialbench/Cargo.toml
similarity index 86%
rename from tpchgen/Cargo.toml
rename to spatialbench/Cargo.toml
index 3f1c629..a3c123c 100644
--- a/tpchgen/Cargo.toml
+++ b/spatialbench/Cargo.toml
@@ -1,8 +1,8 @@
[package]
-name = "tpchgen"
+name = "spatialbench"
authors = ["clflushopt", "alamb"]
description = "Blazing fast pure Rust no dependency TPC-H data generation
library."
-repository = "https://github.com/wherobots/sedona-tpchgen"
+repository = "https://github.com/wherobots/sedona-spatialbench"
readme = { workspace = true }
version = { workspace = true }
edition = { workspace = true }
diff --git a/tpchgen/data/README.md b/spatialbench/data/README.md
similarity index 100%
rename from tpchgen/data/README.md
rename to spatialbench/data/README.md
diff --git a/tpchgen/data/sf-v1/building.tbl.gz
b/spatialbench/data/sf-v1/building.tbl.gz
similarity index 100%
rename from tpchgen/data/sf-v1/building.tbl.gz
rename to spatialbench/data/sf-v1/building.tbl.gz
diff --git a/tpchgen/data/sf-v1/customer.tbl.gz
b/spatialbench/data/sf-v1/customer.tbl.gz
similarity index 100%
rename from tpchgen/data/sf-v1/customer.tbl.gz
rename to spatialbench/data/sf-v1/customer.tbl.gz
diff --git a/tpchgen/data/sf-v1/driver.tbl.gz
b/spatialbench/data/sf-v1/driver.tbl.gz
similarity index 100%
rename from tpchgen/data/sf-v1/driver.tbl.gz
rename to spatialbench/data/sf-v1/driver.tbl.gz
diff --git a/tpchgen/data/sf-v1/trip.tbl.gz
b/spatialbench/data/sf-v1/trip.tbl.gz
similarity index 100%
rename from tpchgen/data/sf-v1/trip.tbl.gz
rename to spatialbench/data/sf-v1/trip.tbl.gz
diff --git a/tpchgen/data/sf-v1/vehicle.tbl.gz
b/spatialbench/data/sf-v1/vehicle.tbl.gz
similarity index 100%
rename from tpchgen/data/sf-v1/vehicle.tbl.gz
rename to spatialbench/data/sf-v1/vehicle.tbl.gz
diff --git a/tpchgen/data/sf-v1/zone.parquet
b/spatialbench/data/sf-v1/zone.parquet
similarity index 100%
rename from tpchgen/data/sf-v1/zone.parquet
rename to spatialbench/data/sf-v1/zone.parquet
diff --git a/tpchgen/src/csv.rs b/spatialbench/src/csv.rs
similarity index 94%
rename from tpchgen/src/csv.rs
rename to spatialbench/src/csv.rs
index 8810279..37eb9ab 100644
--- a/tpchgen/src/csv.rs
+++ b/spatialbench/src/csv.rs
@@ -8,8 +8,8 @@ use std::fmt::Display;
///
/// # Example
/// ```
-/// # use tpchgen::generators::VehicleGenerator;
-/// # use tpchgen::csv::VehicleCsv;
+/// # use spatialbench::generators::VehicleGenerator;
+/// # use spatialbench::csv::VehicleCsv;
/// # use std::fmt::Write;
/// // Output the first 3 rows in CSV format
/// let generator = VehicleGenerator::new(1.0, 1, 1);
@@ -61,8 +61,8 @@ impl Display for VehicleCsv<'_> {
///
/// # Example
/// ```
-/// # use tpchgen::generators::DriverGenerator;
-/// # use tpchgen::csv::DriverCsv;
+/// # use spatialbench::generators::DriverGenerator;
+/// # use spatialbench::csv::DriverCsv;
/// # use std::fmt::Write;
/// // Output the first 3 rows in CSV format
/// let generator = DriverGenerator::new(1.0, 1, 1);
@@ -115,8 +115,8 @@ impl Display for DriverCsv {
///
/// # Example
/// ```
-/// # use tpchgen::generators::CustomerGenerator;
-/// # use tpchgen::csv::CustomerCsv;
+/// # use spatialbench::generators::CustomerGenerator;
+/// # use spatialbench::csv::CustomerCsv;
/// # use std::fmt::Write;
/// // Output the first 3 rows in CSV format
/// let generator = CustomerGenerator::new(1.0, 1, 1);
@@ -169,8 +169,8 @@ impl Display for CustomerCsv<'_> {
///
/// # Example
/// ```
-/// # use tpchgen::generators::TripGenerator;
-/// # use tpchgen::csv::TripCsv;
+/// # use spatialbench::generators::TripGenerator;
+/// # use spatialbench::csv::TripCsv;
/// # use std::fmt::Write;
/// // Output the first 3 rows in CSV format
/// let generator = TripGenerator::new(1.0, 1, 1);
@@ -222,8 +222,8 @@ impl Display for TripCsv {
///
/// # Example
/// ```
-/// # use tpchgen::generators::BuildingGenerator;
-/// # use tpchgen::csv::BuildingCsv;
+/// # use spatialbench::generators::BuildingGenerator;
+/// # use spatialbench::csv::BuildingCsv;
/// # use std::fmt::Write;
/// // Output the first 3 rows in CSV format
/// let generator = BuildingGenerator::new(1.0, 1, 1);
diff --git a/tpchgen/src/dates.rs b/spatialbench/src/dates.rs
similarity index 99%
rename from tpchgen/src/dates.rs
rename to spatialbench/src/dates.rs
index 4f5687e..d8ccaeb 100644
--- a/tpchgen/src/dates.rs
+++ b/spatialbench/src/dates.rs
@@ -142,7 +142,7 @@ impl RandomTimeOfDay {
///
/// # Example
/// ```
-/// # use tpchgen::dates::{TPCHDate, MIN_GENERATE_DATE};
+/// # use spatialbench::dates::{TPCHDate, MIN_GENERATE_DATE};
/// let date = TPCHDate::new(MIN_GENERATE_DATE + 41, 0, 0, 0);
/// // Convert the date to y/m/d fields
/// assert_eq!((92,2,11), date.to_ymd());
diff --git a/tpchgen/src/decimal.rs b/spatialbench/src/decimal.rs
similarity index 98%
rename from tpchgen/src/decimal.rs
rename to spatialbench/src/decimal.rs
index dff1172..bcf2a27 100644
--- a/tpchgen/src/decimal.rs
+++ b/spatialbench/src/decimal.rs
@@ -16,7 +16,7 @@ impl TPCHDecimal {
///
/// # Example
/// ```
- /// use tpchgen::decimal::TPCHDecimal;
+ /// use spatialbench::decimal::TPCHDecimal;
/// let decimal = TPCHDecimal::new(1234);
/// assert_eq!(decimal.to_string(), "12.34");
/// ```
diff --git a/tpchgen/src/distribution.rs b/spatialbench/src/distribution.rs
similarity index 100%
rename from tpchgen/src/distribution.rs
rename to spatialbench/src/distribution.rs
diff --git a/tpchgen/src/dists.dss b/spatialbench/src/dists.dss
similarity index 100%
rename from tpchgen/src/dists.dss
rename to spatialbench/src/dists.dss
diff --git a/tpchgen/src/generators.rs b/spatialbench/src/generators.rs
similarity index 100%
rename from tpchgen/src/generators.rs
rename to spatialbench/src/generators.rs
diff --git a/tpchgen/src/kde.rs b/spatialbench/src/kde.rs
similarity index 100%
rename from tpchgen/src/kde.rs
rename to spatialbench/src/kde.rs
diff --git a/tpchgen/src/lib.rs b/spatialbench/src/lib.rs
similarity index 98%
rename from tpchgen/src/lib.rs
rename to spatialbench/src/lib.rs
index 64bd25b..afbdcb9 100644
--- a/tpchgen/src/lib.rs
+++ b/spatialbench/src/lib.rs
@@ -6,7 +6,7 @@
//!
//! # Example: TBL output format
//! ```
-//! # use tpchgen::generators::TripGenerator;
+//! # use spatialbench::generators::TripGenerator;
//! // Create Generator for the TRIP table at Scale Factor 0.01 (SF 0.01)
//! let scale_factor = 0.01;
//! let part = 1;
diff --git a/tpchgen/src/q_and_a/answers_sf1.rs
b/spatialbench/src/q_and_a/answers_sf1.rs
similarity index 100%
rename from tpchgen/src/q_and_a/answers_sf1.rs
rename to spatialbench/src/q_and_a/answers_sf1.rs
diff --git a/tpchgen/src/q_and_a/mod.rs b/spatialbench/src/q_and_a/mod.rs
similarity index 100%
rename from tpchgen/src/q_and_a/mod.rs
rename to spatialbench/src/q_and_a/mod.rs
diff --git a/tpchgen/src/q_and_a/queries.rs
b/spatialbench/src/q_and_a/queries.rs
similarity index 100%
rename from tpchgen/src/q_and_a/queries.rs
rename to spatialbench/src/q_and_a/queries.rs
diff --git a/tpchgen/src/random.rs b/spatialbench/src/random.rs
similarity index 100%
rename from tpchgen/src/random.rs
rename to spatialbench/src/random.rs
diff --git a/tpchgen/src/spatial/cache.rs b/spatialbench/src/spatial/cache.rs
similarity index 100%
rename from tpchgen/src/spatial/cache.rs
rename to spatialbench/src/spatial/cache.rs
diff --git a/tpchgen/src/spatial/config.rs b/spatialbench/src/spatial/config.rs
similarity index 100%
rename from tpchgen/src/spatial/config.rs
rename to spatialbench/src/spatial/config.rs
diff --git a/tpchgen/src/spatial/defaults.rs
b/spatialbench/src/spatial/defaults.rs
similarity index 100%
rename from tpchgen/src/spatial/defaults.rs
rename to spatialbench/src/spatial/defaults.rs
diff --git a/tpchgen/src/spatial/distributions.rs
b/spatialbench/src/spatial/distributions.rs
similarity index 100%
rename from tpchgen/src/spatial/distributions.rs
rename to spatialbench/src/spatial/distributions.rs
diff --git a/tpchgen/src/spatial/generator.rs
b/spatialbench/src/spatial/generator.rs
similarity index 100%
rename from tpchgen/src/spatial/generator.rs
rename to spatialbench/src/spatial/generator.rs
diff --git a/tpchgen/src/spatial/geometry.rs
b/spatialbench/src/spatial/geometry.rs
similarity index 100%
rename from tpchgen/src/spatial/geometry.rs
rename to spatialbench/src/spatial/geometry.rs
diff --git a/tpchgen/src/spatial/mod.rs b/spatialbench/src/spatial/mod.rs
similarity index 100%
rename from tpchgen/src/spatial/mod.rs
rename to spatialbench/src/spatial/mod.rs
diff --git a/tpchgen/src/spatial/overrides.rs
b/spatialbench/src/spatial/overrides.rs
similarity index 100%
rename from tpchgen/src/spatial/overrides.rs
rename to spatialbench/src/spatial/overrides.rs
diff --git a/tpchgen/src/spatial/utils/affine.rs
b/spatialbench/src/spatial/utils/affine.rs
similarity index 100%
rename from tpchgen/src/spatial/utils/affine.rs
rename to spatialbench/src/spatial/utils/affine.rs
diff --git a/tpchgen/src/spatial/utils/continent.rs
b/spatialbench/src/spatial/utils/continent.rs
similarity index 100%
rename from tpchgen/src/spatial/utils/continent.rs
rename to spatialbench/src/spatial/utils/continent.rs
diff --git a/tpchgen/src/spatial/utils/mod.rs
b/spatialbench/src/spatial/utils/mod.rs
similarity index 100%
rename from tpchgen/src/spatial/utils/mod.rs
rename to spatialbench/src/spatial/utils/mod.rs
diff --git a/tpchgen/src/spatial/utils/random.rs
b/spatialbench/src/spatial/utils/random.rs
similarity index 100%
rename from tpchgen/src/spatial/utils/random.rs
rename to spatialbench/src/spatial/utils/random.rs
diff --git a/tpchgen/src/text.rs b/spatialbench/src/text.rs
similarity index 100%
rename from tpchgen/src/text.rs
rename to spatialbench/src/text.rs
diff --git a/tpchgen/tests/integration_tests.rs
b/spatialbench/tests/integration_tests.rs
similarity index 96%
rename from tpchgen/tests/integration_tests.rs
rename to spatialbench/tests/integration_tests.rs
index b35c7c5..1880d79 100644
--- a/tpchgen/tests/integration_tests.rs
+++ b/spatialbench/tests/integration_tests.rs
@@ -1,7 +1,7 @@
//! Consistence test suite to test the `IntoIterator` trait implementation
-//! for the generators in the `tpchgen` crate.
+//! for the generators in the `spatialbench` crate.
-use tpchgen::generators::{
+use spatialbench::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};