Skip to content

Commit 73d617e

Browse files
committed
WIP: More logging of table columns and source columns
1 parent b1acefe commit 73d617e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rust/cubestore/cubestore/src/import/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,14 +738,17 @@ impl ImportServiceImpl {
738738
data_loaded_size.add(columns_vec_buffer_size(&builded_rows));
739739
}
740740

741+
log::debug!("ImportServiceImpl::do_import (loop) with builded_rows.len() {}, columns.len() {}, columns: {}, location: {}", builded_rows.len(), table.get_row().get_columns().len(), table.get_row().get_columns().iter().map(|c| c.get_name()).join(", "), location);
741742
ingestion.queue_data_frame(builded_rows).await?;
742743
}
743744
}
744745
}
745746

746747
mem::drop(tmp_path);
747748

748-
ingestion.queue_data_frame(finish(builders)).await?;
749+
let rows = finish(builders);
750+
log::debug!("ImportServiceImpl::do_import (last) with rows.len() {}, columns.len() {}, columns: {}, location: {}", rows.len(), table.get_row().get_columns().len(), table.get_row().get_columns().iter().map(|c| c.get_name()).join(", "), location);
751+
ingestion.queue_data_frame(rows).await?;
749752
ingestion.wait_completion().await
750753
}
751754

@@ -951,6 +954,7 @@ impl Ingestion {
951954
let table_id = self.table.get_id();
952955
// TODO In fact it should be only for inserts. Batch imports should still go straight to disk.
953956
let in_memory = self.table.get_row().in_memory_ingest();
957+
log::debug!("queue_data_frame: pushing job with rows.len() {}, columns: {}", rows.len(), columns.iter().map(|c| c.get_name()).join(", "));
954958
self.partition_jobs.push(cube_ext::spawn(async move {
955959
let new_chunks = chunk_store
956960
.partition_data(table_id, rows, &columns, in_memory)

rust/cubestore/cubestore/src/sql/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ impl SqlServiceImpl {
312312
);
313313
for rows_chunk in data.chunks(self.rows_per_chunk) {
314314
let rows = parse_chunk(rows_chunk, &real_col)?;
315+
log::debug!("SqlServiceImpl::insert_data with rows.len() {}, columns {}", rows.len(), table.get_row().get_columns().iter().map(|c| c.get_name()).join(", "));
315316
ingestion.queue_data_frame(rows).await?;
316317
}
317318
ingestion.wait_completion().await?;

0 commit comments

Comments
 (0)