Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ members = [
"vortex-array",
"vortex-functions",
"vortex-expr",
"vortex-extensions/vortex-temporal",
"vortex-arrow",
"vortex-row",
"vortex-compressor",
Expand Down Expand Up @@ -339,6 +340,7 @@ vortex-sequence = { version = "0.1.0", path = "encodings/sequence", default-feat
vortex-session = { version = "0.1.0", path = "./vortex-session", default-features = false }
vortex-sparse = { version = "0.1.0", path = "./encodings/sparse", default-features = false }
vortex-spatial = { version = "0.1.0", path = "./vortex-extensions/vortex-spatial", default-features = false }
vortex-temporal = { version = "0.1.0", path = "./vortex-extensions/vortex-temporal", default-features = false }
vortex-tensor = { version = "0.1.0", path = "./vortex-extensions/vortex-tensor", default-features = false }
vortex-utils = { version = "0.1.0", path = "./vortex-utils", default-features = false }
vortex-uuid = { version = "0.1.0", path = "./vortex-extensions/vortex-uuid", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions encodings/datetime-parts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ vortex-error = { workspace = true }
vortex-functions = { workspace = true }
vortex-mask = { workspace = true }
vortex-session = { workspace = true }
vortex-temporal = { workspace = true }

[dev-dependencies]
divan = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions encodings/datetime-parts/benches/date_time_parts_decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ use vortex_array::IntoArray;
use vortex_array::VortexSessionExecute;
use vortex_array::arrays::ConstantArray;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::builtins::ArrayBuiltins;
use vortex_array::dtype::DType;
use vortex_array::dtype::Nullability;
use vortex_array::dtype::PType;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::extension::datetime::Timestamp;
use vortex_array::scalar::Scalar;
use vortex_array::session::ArraySession;
use vortex_datetime_parts::DateTimeParts;
Expand All @@ -33,6 +30,9 @@ use vortex_fastlanes::FoR;
use vortex_fastlanes::bitpack_compress::bitpack_encode;
use vortex_session::VortexSession;
use vortex_sparse::Sparse;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;
use vortex_temporal::datetime::Timestamp;

#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
Expand Down
11 changes: 7 additions & 4 deletions encodings/datetime-parts/benches/split_temporal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ use rand::rngs::StdRng;
use vortex_array::IntoArray;
use vortex_array::VortexSessionExecute;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::optimizer::kernels::KernelSession;
use vortex_array::test_harness::mark_optimized;
use vortex_array::validity::Validity;
use vortex_buffer::Buffer;
use vortex_datetime_parts::split_temporal;
use vortex_session::VortexSession;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;

#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
Expand All @@ -30,8 +30,11 @@ fn main() {
divan::main();
}

static SESSION: LazyLock<VortexSession> =
LazyLock::new(|| VortexSession::empty().with::<KernelSession>());
static SESSION: LazyLock<VortexSession> = LazyLock::new(|| {
let session = VortexSession::empty().with::<KernelSession>();
vortex_temporal::initialize(&session);
session
});

const BENCH_ARGS: &[(usize, TimeUnit)] = &[
(8_192, TimeUnit::Seconds),
Expand Down
2 changes: 1 addition & 1 deletion encodings/datetime-parts/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use vortex_array::ExecutionResult;
use vortex_array::IntoArray;
use vortex_array::array_slots;
use vortex_array::arrays::Primitive;
use vortex_array::arrays::TemporalArray;
use vortex_array::block::BlockOp;
use vortex_array::buffer::BufferHandle;
use vortex_array::dtype::DType;
Expand All @@ -37,6 +36,7 @@ use vortex_error::vortex_ensure_eq;
use vortex_error::vortex_err;
use vortex_error::vortex_panic;
use vortex_session::registry::CachedId;
use vortex_temporal::arrays::TemporalArray;

use crate::TemporalParts;
use crate::block::days_block_op;
Expand Down
8 changes: 4 additions & 4 deletions encodings/datetime-parts/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ use vortex_array::dtype::DType;
use vortex_array::dtype::NativePType;
use vortex_array::dtype::Nullability;
use vortex_array::dtype::PType;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::extension::datetime::Timestamp;
use vortex_array::match_each_integer_ptype;
use vortex_buffer::Buffer;
use vortex_compute::lane_kernels::Repeat;
use vortex_error::VortexResult;
use vortex_error::vortex_bail;
use vortex_temporal::datetime::TimeUnit;
use vortex_temporal::datetime::Timestamp;

use crate::canonical::combine_parts;
use crate::timestamp::SECONDS_PER_DAY;
Expand Down Expand Up @@ -224,10 +224,8 @@ mod tests {
use vortex_array::arrays::ConstantArray;
use vortex_array::arrays::DictArray;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::assert_arrays_eq;
use vortex_array::dtype::DType;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::match_each_integer_ptype;
use vortex_array::scalar::Scalar;
use vortex_array::test_harness::fusion::fusion_trace;
Expand All @@ -236,6 +234,8 @@ mod tests {
use vortex_fastlanes::FoR;
use vortex_fastlanes::bitpack_compress::bitpack_encode;
use vortex_session::VortexSession;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;

use crate::DateTimeParts;
use crate::array::DateTimePartsArraySlotsExt;
Expand Down
10 changes: 5 additions & 5 deletions encodings/datetime-parts/src/canonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ use vortex_array::ExecutionCtx;
use vortex_array::IntoArray;
use vortex_array::arrays::Primitive;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::arrays::primitive::PrimitiveArrayExt;
use vortex_array::builtins::ArrayBuiltins;
use vortex_array::dtype::DType;
use vortex_array::dtype::Nullability;
use vortex_array::dtype::PType;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::extension::datetime::Timestamp;
use vortex_array::match_each_integer_ptype;
use vortex_buffer::BufferMut;
use vortex_compute::lane_kernels::IndexedSource;
Expand All @@ -26,6 +23,9 @@ use vortex_compute::lane_kernels::Repeat;
use vortex_error::VortexExpect as _;
use vortex_error::VortexResult;
use vortex_error::vortex_panic;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;
use vortex_temporal::datetime::Timestamp;

use crate::array::DateTimePartsParts;
use crate::timestamp::SECONDS_PER_DAY;
Expand Down Expand Up @@ -171,14 +171,14 @@ mod test {
use vortex_array::VortexSessionExecute;
use vortex_array::arrays::ConstantArray;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::arrays::extension::ExtensionArrayExt;
use vortex_array::assert_arrays_eq;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::validity::Validity;
use vortex_buffer::buffer;
use vortex_error::VortexResult;
use vortex_session::VortexSession;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;

use crate::DateTimeParts;
use crate::array::DateTimePartsArraySlotsExt;
Expand Down
8 changes: 4 additions & 4 deletions encodings/datetime-parts/src/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ use vortex_array::aggregate_fn::fns::min_max::MinMaxResult;
use vortex_array::aggregate_fn::fns::min_max::min_max;
use vortex_array::arrays::ConstantArray;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::builtins::ArrayBuiltins;
use vortex_array::dtype::DType;
use vortex_array::dtype::PType;
use vortex_array::extension::datetime::TimeUnit;
use vortex_buffer::Buffer;
use vortex_buffer::BufferMut;
use vortex_error::VortexResult;
use vortex_error::vortex_bail;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;

use crate::timestamp;

Expand Down Expand Up @@ -277,10 +277,8 @@ mod tests {
use vortex_array::IntoArray;
use vortex_array::VortexSessionExecute;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::assert_arrays_eq;
use vortex_array::dtype::PType;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::serde::SerializeOptions;
use vortex_array::serde::SerializedArray;
use vortex_array::validity::Validity;
Expand All @@ -290,6 +288,8 @@ mod tests {
use vortex_error::VortexResult;
use vortex_session::VortexSession;
use vortex_session::registry::ReadContext;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;

use super::day_offset;
use crate::DateTimeParts;
Expand Down
4 changes: 2 additions & 2 deletions encodings/datetime-parts/src/compute/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ mod tests {
use vortex_array::IntoArray;
use vortex_array::VortexSessionExecute;
use vortex_array::arrays::PrimitiveArray;
use vortex_array::arrays::TemporalArray;
use vortex_array::builtins::ArrayBuiltins;
use vortex_array::dtype::DType;
use vortex_array::dtype::Nullability;
use vortex_array::extension::datetime::TimeUnit;
use vortex_array::validity::Validity;
use vortex_buffer::buffer;
use vortex_session::VortexSession;
use vortex_temporal::arrays::TemporalArray;
use vortex_temporal::datetime::TimeUnit;

use crate::DateTimeParts;
use crate::DateTimePartsArray;
Expand Down
Loading
Loading