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 7dc2eb8 fmt, clippy fixes
7dc2eb8 is described below
commit 7dc2eb8ab6eab5ac9c2b17baa2f6734d310ca227
Author: Pranav Toggi <[email protected]>
AuthorDate: Sat Oct 25 14:31:27 2025 -0700
fmt, clippy fixes
---
tpchgen-arrow/src/building.rs | 2 +-
tpchgen-arrow/src/conversions.rs | 2 +-
tpchgen-arrow/src/customer.rs | 2 +-
tpchgen-arrow/src/driver.rs | 2 +-
tpchgen-arrow/src/trip.rs | 2 +-
tpchgen-arrow/src/vehicle.rs | 2 +-
tpchgen-arrow/tests/reparse.rs | 4 ++--
tpchgen-cli/src/csv.rs | 2 +-
tpchgen-cli/src/parquet.rs | 2 +-
tpchgen-cli/src/plan.rs | 4 ++--
tpchgen-cli/src/spatial_config_file.rs | 4 ++--
tpchgen-cli/src/tbl.rs | 2 +-
12 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/tpchgen-arrow/src/building.rs b/tpchgen-arrow/src/building.rs
index f1102c5..1814edd 100644
--- a/tpchgen-arrow/src/building.rs
+++ b/tpchgen-arrow/src/building.rs
@@ -4,8 +4,8 @@ use arrow::array::{BinaryArray, Int64Array, RecordBatch};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
use geo::Geometry;
use geozero::{CoordDimensions, ToWkb};
-use tpchgen::generators::{BuildingGenerator, BuildingGeneratorIterator};
use std::sync::{Arc, LazyLock};
+use tpchgen::generators::{BuildingGenerator, BuildingGeneratorIterator};
/// Generate [`Building`]s in [`RecordBatch`] format
///
diff --git a/tpchgen-arrow/src/conversions.rs b/tpchgen-arrow/src/conversions.rs
index 2adc445..c3ba64e 100644
--- a/tpchgen-arrow/src/conversions.rs
+++ b/tpchgen-arrow/src/conversions.rs
@@ -1,9 +1,9 @@
//! Routines to convert TPCH types to Arrow types
use arrow::array::{StringViewArray, StringViewBuilder};
+use std::fmt::Write;
use tpchgen::dates::TPCHDate;
use tpchgen::decimal::TPCHDecimal;
-use std::fmt::Write;
/// Convert a TPCHDecimal to an Arrow Decimal(15,2)
#[inline(always)]
diff --git a/tpchgen-arrow/src/customer.rs b/tpchgen-arrow/src/customer.rs
index b01c907..4e2e6be 100644
--- a/tpchgen-arrow/src/customer.rs
+++ b/tpchgen-arrow/src/customer.rs
@@ -2,8 +2,8 @@ use crate::conversions::string_view_array_from_display_iter;
use crate::{DEFAULT_BATCH_SIZE, RecordBatchIterator};
use arrow::array::{Int64Array, RecordBatch, StringViewArray};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
-use tpchgen::generators::{CustomerGenerator, CustomerGeneratorIterator};
use std::sync::{Arc, LazyLock};
+use tpchgen::generators::{CustomerGenerator, CustomerGeneratorIterator};
/// Generate [`Customer`]s in [`RecordBatch`] format
///
diff --git a/tpchgen-arrow/src/driver.rs b/tpchgen-arrow/src/driver.rs
index 4d5ff4d..af760a4 100644
--- a/tpchgen-arrow/src/driver.rs
+++ b/tpchgen-arrow/src/driver.rs
@@ -2,8 +2,8 @@ use crate::conversions::string_view_array_from_display_iter;
use crate::{DEFAULT_BATCH_SIZE, RecordBatchIterator};
use arrow::array::{Int64Array, RecordBatch, StringViewArray};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
-use tpchgen::generators::{DriverGenerator, DriverGeneratorIterator};
use std::sync::{Arc, LazyLock};
+use tpchgen::generators::{DriverGenerator, DriverGeneratorIterator};
/// Generate [`Driver`]s in [`RecordBatch`] format
///
diff --git a/tpchgen-arrow/src/trip.rs b/tpchgen-arrow/src/trip.rs
index fc251f0..157a752 100644
--- a/tpchgen-arrow/src/trip.rs
+++ b/tpchgen-arrow/src/trip.rs
@@ -4,8 +4,8 @@ use arrow::array::{BinaryArray, Int64Array, RecordBatch,
TimestampMillisecondArr
use arrow::datatypes::{DataType, Field, Schema, SchemaRef, TimeUnit};
use geo::Geometry;
use geozero::{CoordDimensions, ToWkb};
-use tpchgen::generators::{Trip, TripGenerator, TripGeneratorIterator};
use std::sync::{Arc, LazyLock, Mutex};
+use tpchgen::generators::{Trip, TripGenerator, TripGeneratorIterator};
// Thread-safe wrapper for TripGeneratorIterator
struct ThreadSafeTripGenerator {
diff --git a/tpchgen-arrow/src/vehicle.rs b/tpchgen-arrow/src/vehicle.rs
index e2a42b3..bc09cda 100644
--- a/tpchgen-arrow/src/vehicle.rs
+++ b/tpchgen-arrow/src/vehicle.rs
@@ -2,8 +2,8 @@ use crate::conversions::string_view_array_from_display_iter;
use crate::{DEFAULT_BATCH_SIZE, RecordBatchIterator};
use arrow::array::{Int64Array, RecordBatch, StringViewArray};
use arrow::datatypes::{DataType, Field, Schema, SchemaRef};
-use tpchgen::generators::{VehicleGenerator, VehicleGeneratorIterator};
use std::sync::{Arc, LazyLock};
+use tpchgen::generators::{VehicleGenerator, VehicleGeneratorIterator};
/// Generate [`Vehicle`]s in [`RecordBatch`] format
///
diff --git a/tpchgen-arrow/tests/reparse.rs b/tpchgen-arrow/tests/reparse.rs
index e31e1cc..70d924d 100644
--- a/tpchgen-arrow/tests/reparse.rs
+++ b/tpchgen-arrow/tests/reparse.rs
@@ -3,6 +3,8 @@
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::{
Building, BuildingGenerator, Customer, CustomerGenerator, Driver,
DriverGenerator, Trip,
@@ -11,8 +13,6 @@ use tpchgen::generators::{
use tpchgen_arrow::{
BuildingArrow, CustomerArrow, DriverArrow, RecordBatchIterator, TripArrow,
VehicleArrow,
};
-use std::io::Write;
-use std::sync::Arc;
use arrow::array::Array;
use arrow::array::BinaryArray;
diff --git a/tpchgen-cli/src/csv.rs b/tpchgen-cli/src/csv.rs
index d73f9d8..cbc9fcc 100644
--- a/tpchgen-cli/src/csv.rs
+++ b/tpchgen-cli/src/csv.rs
@@ -1,10 +1,10 @@
//! 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::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
-use std::io::Write;
/// Define a Source that writes the table in CSV format
macro_rules! define_csv_source {
diff --git a/tpchgen-cli/src/parquet.rs b/tpchgen-cli/src/parquet.rs
index 05182c8..767aff4 100644
--- a/tpchgen-cli/src/parquet.rs
+++ b/tpchgen-cli/src/parquet.rs
@@ -10,11 +10,11 @@ use parquet::basic::Compression;
use parquet::file::properties::WriterProperties;
use parquet::file::writer::SerializedFileWriter;
use parquet::schema::types::SchemaDescPtr;
-use tpchgen_arrow::RecordBatchIterator;
use std::io;
use std::io::Write;
use std::sync::Arc;
use tokio::sync::mpsc::{Receiver, Sender};
+use tpchgen_arrow::RecordBatchIterator;
pub trait IntoSize {
/// Convert the object into a size
diff --git a/tpchgen-cli/src/plan.rs b/tpchgen-cli/src/plan.rs
index 012f36f..3a5c6ff 100644
--- a/tpchgen-cli/src/plan.rs
+++ b/tpchgen-cli/src/plan.rs
@@ -2,11 +2,11 @@
use crate::{OutputFormat, Table};
use log::debug;
+use std::fmt::Display;
+use std::ops::RangeInclusive;
use tpchgen::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
-use std::fmt::Display;
-use std::ops::RangeInclusive;
/// A list of generator "parts" (data generator chunks, not Spatial Bench
parts)
///
diff --git a/tpchgen-cli/src/spatial_config_file.rs
b/tpchgen-cli/src/spatial_config_file.rs
index b3ce6b6..91ececd 100644
--- a/tpchgen-cli/src/spatial_config_file.rs
+++ b/tpchgen-cli/src/spatial_config_file.rs
@@ -1,11 +1,11 @@
use anyhow::Result;
use serde::de::{self, Visitor};
use serde::{Deserialize, Deserializer};
+use std::fmt;
+use std::sync::OnceLock;
use tpchgen::spatial::{
DistributionParams, DistributionType, GeomType, SpatialConfig,
SpatialGenerator,
};
-use std::fmt;
-use std::sync::OnceLock;
// Deserializer for DistributionType
fn deserialize_distribution_type<'de, D>(deserializer: D) ->
Result<DistributionType, D::Error>
diff --git a/tpchgen-cli/src/tbl.rs b/tpchgen-cli/src/tbl.rs
index 7ceb1b8..7790f1c 100644
--- a/tpchgen-cli/src/tbl.rs
+++ b/tpchgen-cli/src/tbl.rs
@@ -1,10 +1,10 @@
//! Implementations of [`Source`] for generating data in TBL format
use super::generate::Source;
+use std::io::Write;
use tpchgen::generators::{
BuildingGenerator, CustomerGenerator, DriverGenerator, TripGenerator,
VehicleGenerator,
};
-use std::io::Write;
/// Define a Source that writes the table in TBL format
macro_rules! define_tbl_source {