Skip to content

Commit

Permalink
Vortex Schema -> Vortex DType (#273)
Browse files Browse the repository at this point in the history
I'm sorry... it had to be done
  • Loading branch information
gatesn authored Apr 29, 2024
1 parent d641f99 commit e845b4c
Show file tree
Hide file tree
Showing 90 changed files with 137 additions and 137 deletions.
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ members = [
"vortex-ipc",
"vortex-ree",
"vortex-roaring",
"vortex-schema",
"vortex-dtype",
"vortex-zigzag",
]
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion bench-vortex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ vortex-error = { path = "../vortex-error", features = ["parquet"] }
vortex-fastlanes = { path = "../vortex-fastlanes" }
vortex-ipc = { path = "../vortex-ipc" }
vortex-ree = { path = "../vortex-ree" }
vortex-schema = { path = "../vortex-schema" }
vortex-dtype = { path = "../vortex-dtype" }
vortex-zigzag = { path = "../vortex-zigzag" }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion bench-vortex/src/data_downloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ use parquet::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
use tokio::runtime::Runtime;
use vortex::arrow::FromArrowType;
use vortex::{IntoArray, SerdeContext, ToArrayData};
use vortex_dtype::DType;
use vortex_error::{VortexError, VortexResult};
use vortex_ipc::writer::StreamWriter;
use vortex_schema::DType;

use crate::idempotent;
use crate::reader::BATCH_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion bench-vortex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ use vortex::{IntoArray, OwnedArray, ToArrayData};
use vortex_alp::ALPEncoding;
use vortex_datetime_parts::DateTimePartsEncoding;
use vortex_dict::DictEncoding;
use vortex_dtype::DType;
use vortex_fastlanes::{BitPackedEncoding, FoREncoding};
use vortex_ree::REEEncoding;
use vortex_roaring::RoaringBoolEncoding;
use vortex_schema::DType;

use crate::data_downloads::FileType;
use crate::reader::BATCH_SIZE;
Expand Down
2 changes: 1 addition & 1 deletion bench-vortex/src/parquet_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use std::path::Path;

use parquet::arrow::arrow_reader::ParquetRecordBatchReaderBuilder;
use vortex::arrow::FromArrowType;
use vortex_dtype::DType;
use vortex_error::VortexResult;
use vortex_schema::DType;

use crate::data_downloads::FileType;
use crate::CompressionRunStats;
Expand Down
2 changes: 1 addition & 1 deletion bench-vortex/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ use vortex::array::chunked::ChunkedArray;
use vortex::arrow::FromArrowType;
use vortex::compute::take::take;
use vortex::{IntoArray, OwnedArray, SerdeContext, ToArrayData, ToStatic};
use vortex_dtype::DType;
use vortex_error::VortexResult;
use vortex_ipc::iter::FallibleLendingIterator;
use vortex_ipc::reader::StreamReader;
use vortex_ipc::writer::StreamWriter;
use vortex_schema::DType;

use crate::compress_ctx;

Expand Down
2 changes: 1 addition & 1 deletion bench-vortex/src/vortex_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use std::path::Path;
use vortex::array::chunked::ChunkedArray;
use vortex::array::r#struct::StructArray;
use vortex::ArrayDType;
use vortex_dtype::DType;
use vortex_error::VortexResult;
use vortex_schema::DType;

use crate::data_downloads::FileType;
use crate::reader::open_vortex;
Expand Down
2 changes: 1 addition & 1 deletion pyvortex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ vortex-error = { path = "../vortex-error" }
vortex-fastlanes = { path = "../vortex-fastlanes" }
vortex-ree = { path = "../vortex-ree" }
vortex-roaring = { path = "../vortex-roaring" }
vortex-schema = { path = "../vortex-schema" }
vortex-dtype = { path = "../vortex-dtype" }
vortex-zigzag = { path = "../vortex-zigzag" }
itertools = { workspace = true }
log = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion pyvortex/src/dtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use arrow::pyarrow::FromPyArrow;
use pyo3::types::PyType;
use pyo3::{pyclass, pymethods, Py, PyAny, PyResult, Python};
use vortex::arrow::FromArrowType;
use vortex_schema::DType;
use vortex_dtype::DType;

#[pyclass(name = "DType", module = "vortex", subclass)]
pub struct PyDType {
Expand Down
2 changes: 1 addition & 1 deletion pyvortex/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use pyo3::prelude::*;
use vortex::array::chunked::ChunkedArray;
use vortex::arrow::{FromArrowArray, FromArrowType};
use vortex::{ArrayData, IntoArray, ToArrayData};
use vortex_schema::DType;
use vortex_dtype::DType;

use crate::array::PyArray;
use crate::error::PyVortexError;
Expand Down
4 changes: 2 additions & 2 deletions pyvortex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use dtype::PyDType;
use log::debug;
use pyo3::prelude::*;
use vortex::encoding::VORTEX_ENCODINGS;
use vortex_schema::DType;
use vortex_schema::Signedness::{Signed, Unsigned};
use vortex_dtype::DType;
use vortex_dtype::Signedness::{Signed, Unsigned};

use crate::array::*;

Expand Down
2 changes: 1 addition & 1 deletion vortex-alp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ paste = { workspace = true }
serde = { workspace = true, features = ["derive"] }
vortex-array = { path = "../vortex-array" }
vortex-error = { path = "../vortex-error" }
vortex-schema = { path = "../vortex-schema" }
vortex-dtype = { path = "../vortex-dtype" }

[dev-dependencies]
divan = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion vortex-alp/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use vortex::stats::ArrayStatisticsCompute;
use vortex::validity::{ArrayValidity, LogicalValidity};
use vortex::visitor::{AcceptArrayVisitor, ArrayVisitor};
use vortex::{impl_encoding, ArrayDType, ArrayFlatten, IntoArrayData, OwnedArray, ToArrayData};
use vortex_dtype::{IntWidth, Signedness};
use vortex_error::{vortex_bail, VortexResult};
use vortex_schema::{IntWidth, Signedness};

use crate::alp::Exponents;
use crate::compress::{alp_encode, decompress};
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ thiserror = { workspace = true }
vortex-alloc = { path = "../vortex-alloc" }
vortex-error = { path = "../vortex-error", features = ["flexbuffers"] }
vortex-flatbuffers = { path = "../vortex-flatbuffers" }
vortex-schema = { path = "../vortex-schema", features = ["serde"] }
vortex-dtype = { path = "../vortex-dtype", features = ["serde"] }
serde = { workspace = true, features = ["derive"] }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/flatbuffers/scalar.fbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include "vortex-schema/flatbuffers/dtype.fbs";
include "vortex-dtype/flatbuffers/dtype.fbs";

namespace vortex.scalar;

Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/array/bool/compute/fill.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use vortex_dtype::Nullability;
use vortex_error::VortexResult;
use vortex_schema::Nullability;

use crate::array::bool::BoolArray;
use crate::compute::fill::FillForwardFn;
Expand Down
4 changes: 2 additions & 2 deletions vortex-array/src/array/chunked/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use itertools::Itertools;
use serde::{Deserialize, Serialize};
use vortex_dtype::{IntWidth, Nullability, Signedness};
use vortex_error::{vortex_bail, VortexResult};
use vortex_schema::{IntWidth, Nullability, Signedness};

use crate::array::primitive::PrimitiveArray;
use crate::compute::scalar_at::scalar_at;
Expand Down Expand Up @@ -145,7 +145,7 @@ impl EncodingCompression for ChunkedEncoding {}

#[cfg(test)]
mod test {
use vortex_schema::{DType, IntWidth, Nullability, Signedness};
use vortex_dtype::{DType, IntWidth, Nullability, Signedness};

use crate::array::chunked::{ChunkedArray, OwnedChunkedArray};
use crate::ptype::NativePType;
Expand Down
4 changes: 2 additions & 2 deletions vortex-array/src/array/composite/array.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use flatbuffers::root;
use vortex_dtype::flatbuffers as fb;
use vortex_dtype::{CompositeID, DTypeSerdeContext};
use vortex_error::{vortex_err, VortexResult};
use vortex_flatbuffers::{FlatBufferToBytes, ReadFlatBuffer};
use vortex_schema::flatbuffers as fb;
use vortex_schema::{CompositeID, DTypeSerdeContext};

use crate::array::composite::{find_extension, CompositeExtensionRef, TypedCompositeArray};
use crate::compute::ArrayCompute;
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/array/composite/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub use array::*;
use linkme::distributed_slice;
pub use typed::*;
use vortex_schema::CompositeID;
use vortex_dtype::CompositeID;

mod array;
mod compute;
Expand Down
6 changes: 3 additions & 3 deletions vortex-array/src/array/composite/typed.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::fmt::Debug;

use vortex_dtype::CompositeID;
use vortex_dtype::DType;
use vortex_error::{VortexError, VortexResult};
use vortex_schema::CompositeID;
use vortex_schema::DType;

use crate::array::composite::array::CompositeArray;
use crate::array::composite::UnderlyingMetadata;
Expand Down Expand Up @@ -75,7 +75,7 @@ macro_rules! impl_composite {
($id:expr, $T:ty) => {
use linkme::distributed_slice;
use paste::paste;
use vortex_schema::{CompositeID, DType, Nullability};
use vortex_dtype::{CompositeID, DType, Nullability};
use $crate::array::composite::{
CompositeArray, CompositeExtension, TypedCompositeArray, UnderlyingMetadata,
VORTEX_COMPOSITE_EXTENSIONS,
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/array/constant/flatten.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use vortex_dtype::Nullability;
use vortex_error::VortexResult;
use vortex_schema::Nullability;

use crate::array::bool::BoolArray;
use crate::array::constant::ConstantArray;
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/array/constant/stats.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashMap;

use vortex_dtype::DType;
use vortex_error::VortexResult;
use vortex_schema::DType;

use crate::array::constant::ConstantArray;
use crate::scalar::Scalar;
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/array/primitive/compute/cast.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use vortex_dtype::DType;
use vortex_error::{vortex_err, VortexResult};
use vortex_schema::DType;

use crate::array::primitive::PrimitiveArray;
use crate::compute::cast::CastFn;
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/array/sparse/compute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ fn take_search_sorted(
#[cfg(test)]
mod test {
use itertools::Itertools;
use vortex_schema::{DType, FloatWidth, Nullability};
use vortex_dtype::{DType, FloatWidth, Nullability};

use crate::array::primitive::PrimitiveArray;
use crate::array::sparse::compute::take_map;
Expand Down
Loading

0 comments on commit e845b4c

Please sign in to comment.