Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Aug 6, 2024
1 parent 8dd21a5 commit 859c54e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion vortex-serde/src/layout/reader/batch.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::mem;
use std::sync::Arc;

use vortex::{Array, IntoArray};
use vortex::array::StructArray;
use vortex::{Array, IntoArray};
use vortex_error::VortexResult;

use crate::layout::{Layout, ReadResult};
Expand Down
2 changes: 1 addition & 1 deletion vortex-serde/src/layout/reader/buffered.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::VecDeque;

use vortex::array::chunked::ChunkedArray;
use vortex::array::ChunkedArray;
use vortex::compute::slice;
use vortex::{Array, ArrayDType, IntoArray};
use vortex_error::VortexResult;
Expand Down
17 changes: 8 additions & 9 deletions vortex-serde/src/layout/reader/mod.rs
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
use std::mem;
use std::pin::Pin;
use std::sync::{Arc, RwLock};
use std::task::{Context, Poll, ready};
use std::task::{ready, Context, Poll};

use bytes::{Bytes, BytesMut};
use futures::{FutureExt, Stream};
use futures_util::{stream, StreamExt, TryStreamExt};
use futures_util::future::BoxFuture;

use futures_util::{stream, StreamExt, TryStreamExt};
use projections::Projection;
use schema::Schema;
use vortex::{Array, ArrayDType, IntoArray, IntoArrayVariant};
use vortex::array::StructArray;
use vortex::compute::{filter, filter_indices, search_sorted, SearchSortedSide, slice, take};
use vortex::compute::unary::subtract_scalar;
use vortex_dtype::{DType, match_each_integer_ptype};
use vortex::compute::{filter, filter_indices, search_sorted, slice, take, SearchSortedSide};
use vortex::{Array, ArrayDType, IntoArray, IntoArrayVariant};
use vortex_dtype::{match_each_integer_ptype, DType};
use vortex_error::{vortex_bail, VortexError, VortexResult};
use vortex_scalar::Scalar;

use crate::io::VortexReadAt;
use crate::layout::{
Layout, LayoutReader, MessageId, MessagesCache, ReadResult, RelativeMessageCache, Scan,
};
use crate::layout::footer::Footer;
use crate::layout::reader::filtering::RowFilter;
use crate::layout::writer::layout_writer::MAGIC_BYTES;
use crate::layout::{
Layout, LayoutReader, MessageId, MessagesCache, ReadResult, RelativeMessageCache, Scan,
};

pub mod batch;
pub mod buffered;
Expand Down
5 changes: 2 additions & 3 deletions vortex-serde/src/layout/tests.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
use std::sync::Arc;

use futures::StreamExt;

use vortex::{ArrayDType, Context, IntoArray, IntoArrayVariant};
use vortex::array::{ChunkedArray, PrimitiveArray, StructArray, VarBinArray};
use vortex::{ArrayDType, Context, IntoArray, IntoArrayVariant};
use vortex_dtype::PType;

use crate::layout::{LayoutContext, LayoutReader};
use crate::layout::reader::projections::Projection;
use crate::layout::reader::VortexLayoutReaderBuilder;
use crate::layout::writer::layout_writer::LayoutWriter;
use crate::layout::{LayoutContext, LayoutReader};

#[tokio::test]
#[cfg_attr(miri, ignore)]
Expand Down
10 changes: 0 additions & 10 deletions vortex-serde/src/layout/writer/layout_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use std::mem;
use flatbuffers::{FlatBufferBuilder, WIPOffset};
use futures::{Stream, TryStreamExt};
use itertools::Itertools;

use vortex::{Array, ArrayDType, IntoArray};
use vortex::array::{ChunkedArray, StructArray};
use vortex::stream::ArrayStream;
use vortex::validity::Validity;
Expand Down Expand Up @@ -266,15 +264,7 @@ impl<W: VortexWrite> LayoutWriter<W> {
#[cfg(test)]
mod tests {
use futures_executor::block_on;
<<<<<<< HEAD

use vortex::array::{PrimitiveArray, StructArray, VarBinArray};
use vortex::IntoArray;
=======
use vortex::array::primitive::PrimitiveArray;
use vortex::array::struct_::StructArray;
use vortex::array::varbin::VarBinArray;
>>>>>>> a97576cb (more)
use vortex::validity::Validity;
use vortex::IntoArray;

Expand Down

0 comments on commit 859c54e

Please sign in to comment.