Skip to content

Commit 0b43242

Browse files
committed
minor
1 parent 708ada5 commit 0b43242

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

datafusion/common/src/heap_size.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ impl DFHeapSize for DataType {
170170
Struct(s) => s.heap_size(),
171171
Union(u, m) => u.heap_size() + m.heap_size(),
172172
Dictionary(a, b) => a.heap_size() + b.heap_size(),
173-
Decimal32(u8, i8) => u8.heap_size() + i8.heap_size(),
174-
Decimal64(u8, i8) => u8.heap_size() + i8.heap_size(),
175-
Decimal128(u8, i8) => u8.heap_size() + i8.heap_size(),
176-
Decimal256(u8, i8) => u8.heap_size() + i8.heap_size(),
173+
Decimal32(p, s) => p.heap_size() + s.heap_size(),
174+
Decimal64(p, s) => p.heap_size() + s.heap_size(),
175+
Decimal128(p, s) => p.heap_size() + s.heap_size(),
176+
Decimal256(p, s) => p.heap_size() + s.heap_size(),
177177
Map(m, b) => m.heap_size() + b.heap_size(),
178178
RunEndEncoded(a, b) => a.heap_size() + b.heap_size(),
179179
}

datafusion/execution/src/cache/cache_manager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl DFHeapSize for CachedFileMetadata {
113113
+ self.meta.e_tag.heap_size()
114114
+ self.meta.location.as_ref().heap_size()
115115
+ self.statistics.heap_size()
116-
//TODO add ordering once LexOrdering /PhysicalExpr implements DFHeapSize
116+
//TODO add ordering once LexOrdering/PhysicalExpr implements DFHeapSize
117117
}
118118
}
119119

@@ -501,6 +501,7 @@ impl CacheManagerConfig {
501501
self
502502
}
503503

504+
/// Specifies the memory limit for the file statistics cache, in bytes.
504505
pub fn with_file_statistics_cache_limit(mut self, limit: usize) -> Self {
505506
self.file_statistics_cache_limit = limit;
506507
self

0 commit comments

Comments
 (0)