Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
o_voievodin committed Feb 21, 2024
1 parent b7f7724 commit 17fcf81
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 11 deletions.
104 changes: 97 additions & 7 deletions core/Cargo.lock

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

6 changes: 2 additions & 4 deletions core/src/parquet/util/test_common/page_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use rand::distributions::uniform::SampleUniform;
use parquet::{
basic::Encoding,
column::page::{Page, PageIterator, PageMetadata, PageReader},
data_type::{AsBytes, DataType},
data_type::DataType,
encodings::{
encoding::{get_encoder, DictEncoder, Encoder},
levels::{max_buffer_size, LevelEncoder},
Expand All @@ -31,8 +31,6 @@ use parquet::{
schema::types::{ColumnDescPtr, SchemaDescPtr},
};

use crate::parquet::util::memory::ByteBufferPtr;

use super::random_numbers_range;
use bytes::Bytes;
use zstd::zstd_safe::WriteBuf;
Expand Down Expand Up @@ -292,7 +290,7 @@ pub fn make_pages<T: DataType>(
let indices = dict_encoder
.write_indices()
.expect("write_indices() should be OK");
pb.add_indices(ByteBufferPtr::new(indices.as_bytes().to_vec()));
pb.add_indices(indices);
}
Encoding::PLAIN => {
pb.add_values::<T>(encoding, &values[value_range]);
Expand Down

0 comments on commit 17fcf81

Please sign in to comment.