@@ -12,8 +12,6 @@ use ::object_store::RetryConfig;
12
12
use object_store:: { path:: Path , prefix:: PrefixStore , ObjectStore , ObjectStoreScheme } ;
13
13
use tokio:: runtime:: Handle ;
14
14
15
- #[ cfg( feature = "delta-cache" ) ]
16
- use super :: storage:: cache:: LogCacheConfig ;
17
15
use super :: storage:: runtime:: RuntimeConfig ;
18
16
use super :: storage:: LimitConfig ;
19
17
use crate :: { DeltaResult , DeltaTableError } ;
39
37
}
40
38
}
41
39
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
-
53
40
/// Generic container for parsing configuration
54
41
pub ( super ) struct ParseResult < T > {
55
42
/// Parsed configuration
@@ -105,14 +92,6 @@ where
105
92
106
93
#[ derive( Default , Debug , Clone ) ]
107
94
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
-
116
95
/// Runtime configuration.
117
96
///
118
97
/// Configuration to set up a dedicated IO runtime to execute IO related operations.
@@ -198,13 +177,6 @@ where
198
177
199
178
let remainder = result. unparsed ;
200
179
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
-
208
180
#[ cfg( feature = "cloud" ) ]
209
181
let remainder = {
210
182
let result = ParseResult :: < RetryConfig > :: from_iter ( remainder) ;
@@ -254,14 +226,6 @@ impl StorageConfig {
254
226
props. limit = ( !result. is_default ) . then_some ( result. config ) ;
255
227
let remainder = result. unparsed ;
256
228
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
-
265
229
#[ cfg( feature = "cloud" ) ]
266
230
let remainder = {
267
231
let ( retry, remainder) : ( RetryConfig , _ ) = try_parse_impl ( remainder) ?;
0 commit comments