Skip to content

Commit b2dd8fa

Browse files
roeaprtyler
authored andcommitted
fix: PR feedback
Signed-off-by: Robert Pack <[email protected]>
1 parent ba80e15 commit b2dd8fa

File tree

3 files changed

+0
-368
lines changed

3 files changed

+0
-368
lines changed

crates/core/src/logstore/config.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ use ::object_store::RetryConfig;
1212
use object_store::{path::Path, prefix::PrefixStore, ObjectStore, ObjectStoreScheme};
1313
use tokio::runtime::Handle;
1414

15-
#[cfg(feature = "delta-cache")]
16-
use super::storage::cache::LogCacheConfig;
1715
use super::storage::runtime::RuntimeConfig;
1816
use super::storage::LimitConfig;
1917
use crate::{DeltaResult, DeltaTableError};
@@ -39,17 +37,6 @@ where
3937
}
4038
}
4139

42-
#[cfg(feature = "delta-cache")]
43-
impl<K, V> FromIterator<(K, V)> for LogCacheConfig
44-
where
45-
K: AsRef<str> + Into<String>,
46-
V: AsRef<str> + Into<String>,
47-
{
48-
fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self {
49-
ParseResult::from_iter(iter).config
50-
}
51-
}
52-
5340
/// Generic container for parsing configuration
5441
pub(super) struct ParseResult<T> {
5542
/// Parsed configuration
@@ -105,14 +92,6 @@ where
10592

10693
#[derive(Default, Debug, Clone)]
10794
pub struct StorageConfig {
108-
#[cfg(feature = "delta-cache")]
109-
/// Log cache configuration.
110-
///
111-
/// The log cache will selectively cache reads from the storage layer
112-
/// that target known log files. Specifically JSON commit files
113-
/// (including compacted commits) and deletion vectors.
114-
pub cache: Option<LogCacheConfig>,
115-
11695
/// Runtime configuration.
11796
///
11897
/// Configuration to set up a dedicated IO runtime to execute IO related operations.
@@ -198,13 +177,6 @@ where
198177

199178
let remainder = result.unparsed;
200179

201-
#[cfg(feature = "delta-cache")]
202-
let remainder = {
203-
let result = ParseResult::<LogCacheConfig>::from_iter(remainder);
204-
config.cache = (!result.is_default).then_some(result.config);
205-
result.unparsed
206-
};
207-
208180
#[cfg(feature = "cloud")]
209181
let remainder = {
210182
let result = ParseResult::<RetryConfig>::from_iter(remainder);
@@ -254,14 +226,6 @@ impl StorageConfig {
254226
props.limit = (!result.is_default).then_some(result.config);
255227
let remainder = result.unparsed;
256228

257-
#[cfg(feature = "delta-cache")]
258-
let remainder = {
259-
let result = ParseResult::<LogCacheConfig>::from_iter(remainder);
260-
result.raise_errors()?;
261-
props.cache = (!result.is_default).then_some(result.config);
262-
result.unparsed
263-
};
264-
265229
#[cfg(feature = "cloud")]
266230
let remainder = {
267231
let (retry, remainder): (RetryConfig, _) = try_parse_impl(remainder)?;

0 commit comments

Comments
 (0)