From 0f990436695812cd552433c468a7b97412275407 Mon Sep 17 00:00:00 2001 From: QuenKar <47681251+QuenKar@users.noreply.github.com> Date: Fri, 5 Jan 2024 16:23:20 +0800 Subject: [PATCH] chore: test --- src/mito2/src/cache/write_cache.rs | 8 ++++++++ src/mito2/src/sst.rs | 3 +++ src/mito2/src/sst/parquet.rs | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mito2/src/cache/write_cache.rs b/src/mito2/src/cache/write_cache.rs index dcc13ef2aa31..55c87d528304 100644 --- a/src/mito2/src/cache/write_cache.rs +++ b/src/mito2/src/cache/write_cache.rs @@ -137,3 +137,11 @@ pub struct SstUploadRequest { /// Remote object store to upload. pub remote_store: ObjectStore, } + +#[cfg(test)] +mod tests { + use common_test_util::temp_dir::create_temp_dir; + + #[test] + fn test_write_and_upload_sst() {} +} diff --git a/src/mito2/src/sst.rs b/src/mito2/src/sst.rs index 94e0cb205bc2..a0b8c52c4bd7 100644 --- a/src/mito2/src/sst.rs +++ b/src/mito2/src/sst.rs @@ -20,3 +20,6 @@ pub mod index; pub mod location; pub mod parquet; pub(crate) mod version; + +/// Default write buffer size. +pub const DEFAULT_WRITE_BUFFER_SIZE: ReadableSize = ReadableSize::mb(8); diff --git a/src/mito2/src/sst/parquet.rs b/src/mito2/src/sst/parquet.rs index 393299ae12ec..56fb70e8f77a 100644 --- a/src/mito2/src/sst/parquet.rs +++ b/src/mito2/src/sst/parquet.rs @@ -29,7 +29,7 @@ use crate::sst::file::FileTimeRange; /// Key of metadata in parquet SST. pub const PARQUET_METADATA_KEY: &str = "greptime:metadata"; -pub const DEFAULT_WRITE_BUFFER_SIZE: ReadableSize = ReadableSize::mb(8); + /// Default batch size to read parquet files. pub(crate) const DEFAULT_READ_BATCH_SIZE: usize = 1024; /// Default row group size for parquet files.