Skip to content
Merged
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
2 changes: 2 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions vortex-tensor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ vortex-fastlanes = { workspace = true }
vortex-session = { workspace = true }
vortex-utils = { workspace = true }

arrow-array = { workspace = true }
arrow-schema = { workspace = true }
half = { workspace = true }
itertools = { workspace = true }
num-traits = { workspace = true }
Expand All @@ -36,4 +38,5 @@ mimalloc = { workspace = true }
rand = { workspace = true }
rand_distr = { workspace = true }
rstest = { workspace = true }
vortex-array = { workspace = true, features = ["_test-harness"] }
vortex-btrblocks = { path = "../vortex-btrblocks" }
20 changes: 20 additions & 0 deletions vortex-tensor/public-api.lock
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,24 @@ pub fn vortex_tensor::vector::Vector::hash<__H: core::hash::Hasher>(&self, &mut

impl core::marker::StructuralPartialEq for vortex_tensor::vector::Vector

impl vortex_array::arrow::session::ArrowExportVTable for vortex_tensor::vector::Vector

pub fn vortex_tensor::vector::Vector::arrow_ext_id(&self) -> vortex_session::registry::Id

pub fn vortex_tensor::vector::Vector::execute_arrow(&self, vortex_array::array::erased::ArrayRef, &arrow_schema::field::Field, &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<vortex_array::arrow::session::ArrowExport>

pub fn vortex_tensor::vector::Vector::to_arrow_field(&self, &str, &vortex_array::dtype::extension::erased::ExtDTypeRef) -> vortex_error::VortexResult<core::option::Option<arrow_schema::field::Field>>

pub fn vortex_tensor::vector::Vector::vortex_ext_id(&self) -> vortex_array::dtype::extension::ExtId

impl vortex_array::arrow::session::ArrowImportVTable for vortex_tensor::vector::Vector

pub fn vortex_tensor::vector::Vector::arrow_ext_id(&self) -> vortex_session::registry::Id

pub fn vortex_tensor::vector::Vector::from_arrow_array(&self, arrow_array::array::ArrayRef, &vortex_array::dtype::extension::erased::ExtDTypeRef) -> vortex_error::VortexResult<vortex_array::arrow::session::ArrowImport>

pub fn vortex_tensor::vector::Vector::from_arrow_field(&self, &arrow_schema::field::Field) -> vortex_error::VortexResult<core::option::Option<vortex_array::dtype::DType>>

impl vortex_array::dtype::extension::vtable::ExtVTable for vortex_tensor::vector::Vector

pub type vortex_tensor::vector::Vector::Metadata = vortex_array::extension::EmptyMetadata
Expand Down Expand Up @@ -602,6 +620,8 @@ impl core::marker::Copy for vortex_tensor::vector::VectorMatcherMetadata

impl core::marker::StructuralPartialEq for vortex_tensor::vector::VectorMatcherMetadata

pub const vortex_tensor::vector::ARROW_VECTOR_EXTENSION_NAME: &str

pub mod vortex_tensor::vector_search

pub fn vortex_tensor::vector_search::build_similarity_search_tree<T: vortex_array::dtype::ptype::NativePType + core::convert::Into<vortex_array::scalar::typed_view::primitive::pvalue::PValue>>(vortex_array::array::erased::ArrayRef, &[T], T) -> vortex_error::VortexResult<vortex_array::array::erased::ArrayRef>
Expand Down
7 changes: 7 additions & 0 deletions vortex-tensor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
allow(clippy::unwrap_used, clippy::expect_used, clippy::unwrap_in_result)
)]

use std::sync::Arc;

use vortex_array::arrays::scalar_fn::plugin::ScalarFnArrayPlugin;
use vortex_array::arrow::ArrowSessionExt;
use vortex_array::dtype::session::DTypeSessionExt;
use vortex_array::scalar_fn::session::ScalarFnSessionExt;
use vortex_array::session::ArraySessionExt;
Expand Down Expand Up @@ -50,6 +53,10 @@ pub fn initialize(session: &VortexSession) {
session.dtypes().register(Vector);
session.dtypes().register(FixedShapeTensor);

let arrow_session = session.arrow();
arrow_session.register_exporter(Arc::new(Vector));
arrow_session.register_importer(Arc::new(Vector));

let session_fns = session.scalar_fns();

session_fns.register(CosineSimilarity);
Expand Down
Loading
Loading