Skip to content

Commit

Permalink
fix: remove metadata in DataPart
Browse files Browse the repository at this point in the history
  • Loading branch information
v0y4g3r committed Feb 21, 2024
1 parent ac863a7 commit 8269530
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mito2/src/memtable/merge_tree/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ use datatypes::vectors::{
use parquet::arrow::arrow_reader::{ParquetRecordBatchReader, ParquetRecordBatchReaderBuilder};
use parquet::arrow::ArrowWriter;
use parquet::file::properties::WriterProperties;
use parquet::format::FileMetaData;
use snafu::ResultExt;
use store_api::metadata::RegionMetadataRef;
use store_api::storage::consts::{OP_TYPE_COLUMN_NAME, SEQUENCE_COLUMN_NAME};
Expand Down Expand Up @@ -522,10 +521,9 @@ impl<'a> DataPartEncoder<'a> {
true,
)?;
writer.write(&rb).context(error::EncodeMemtableSnafu)?;
let metadata = writer.close().context(error::EncodeMemtableSnafu)?;
let _metadata = writer.close().context(error::EncodeMemtableSnafu)?;
Ok(DataPart::Parquet(ParquetPart {
data: Bytes::from(bytes),
metadata,
}))
}
}
Expand Down Expand Up @@ -654,7 +652,6 @@ impl DataPartReader {
/// Parquet-encoded `DataPart`.
pub struct ParquetPart {
data: Bytes,
metadata: FileMetaData,
}

#[cfg(test)]
Expand Down

0 comments on commit 8269530

Please sign in to comment.