We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a8e20 commit 3406526Copy full SHA for 3406526
vortex-layout/src/layouts/chunked/reader.rs
@@ -60,16 +60,12 @@ impl ChunkedReader {
60
pub(crate) async fn stats_table(&self) -> VortexResult<Option<&StatsTable>> {
61
self.stats_table
62
.get_or_try_init(async {
63
- // The number of chunks
64
- let mut nchunks = self.layout.nchildren();
65
- if self.layout.metadata().is_some() {
66
- // The final child is the statistics table.
67
- nchunks -= 1;
68
- }
69
-
70
Ok(match self.layout.metadata() {
71
None => None,
72
Some(metadata) => {
+ // The final child is the statistics table.
+ let nchunks = self.layout.nchildren() - 1;
+
73
// Figure out which stats are present
74
let present_stats: Arc<[Stat]> =
75
Arc::from(stats_from_bitset_bytes(metadata.as_ref()));
0 commit comments