Skip to content

Commit 6d00677

Browse files
committed
fix typos
1 parent ef4e872 commit 6d00677

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/query/storages/fuse/src/io/read/vector_index/vector_index_loader.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,19 @@ pub(crate) async fn load_vector_index_files<'a>(
133133
.map(|(_, meta)| meta)
134134
.collect();
135135

136-
// 4. read column datas, first try to read from cache,
136+
// 4. read column data, first try to read from cache,
137137
// if not exists, fetch from object storage
138138
let mut ranges = Vec::new();
139139
let mut names_map = HashMap::new();
140-
let mut column_datas = HashMap::new();
140+
let mut column_data = HashMap::new();
141141
let vector_index_file_cache = CacheManager::instance().get_vector_index_file_cache();
142142
for (i, (name, col_meta)) in column_indices
143143
.iter()
144144
.zip(projected_column_metas.into_iter())
145145
{
146146
let cache_key = cache_key_of_column(location, name);
147147
if let Some(cache_file) = vector_index_file_cache.get_sized(&cache_key, col_meta.len) {
148-
column_datas.insert(*i, cache_file);
148+
column_data.insert(*i, cache_file);
149149
continue;
150150
}
151151

@@ -172,15 +172,15 @@ pub(crate) async fn load_vector_index_files<'a>(
172172

173173
// add index file to cache
174174
vector_index_file_cache.insert(cache_key, file.clone());
175-
column_datas.insert(*i as usize, Arc::new(file));
175+
column_data.insert(*i as usize, Arc::new(file));
176176
}
177177
}
178178

179-
// 5. deserialize raw data to vector index datas
179+
// 5. deserialize raw data to vector index data
180180
let mut builder =
181181
RowGroupImplBuilder::new(1, &vector_index_schema_desc, TableCompression::Zstd.into());
182182

183-
for (i, column_data) in column_datas {
183+
for (i, column_data) in column_data {
184184
builder.add_column_chunk(i, Bytes::copy_from_slice(&column_data.data));
185185
}
186186
let row_group = Box::new(builder.build());

0 commit comments

Comments
 (0)