From 37d96b2fd3a0dae957b68fd24a21b5dce9194f20 Mon Sep 17 00:00:00 2001
From: sundyli <543950155@qq.com>
Date: Fri, 17 Jan 2025 14:57:31 +0800
Subject: [PATCH] chore(query): improve fuse row fetch, use accumulating
(#17309)
* fix(query): improve fuse row fetch, use accumulating
* fix(query): improve fuse row fetch, use accumulating
* fix(query): improve fuse row fetch, use accumulating
* fix(query): add extra log
---
.../transform_accumulating_async.rs | 16 +++++++
.../src/operations/read/fuse_rows_fetcher.rs | 47 ++++++++++++-------
.../operations/read/native_rows_fetcher.rs | 5 --
.../operations/read/parquet_rows_fetcher.rs | 5 --
4 files changed, 46 insertions(+), 27 deletions(-)
diff --git a/src/query/pipeline/transforms/src/processors/transforms/transform_accumulating_async.rs b/src/query/pipeline/transforms/src/processors/transforms/transform_accumulating_async.rs
index d4e4455595b9e..ad8c53fdb3f62 100644
--- a/src/query/pipeline/transforms/src/processors/transforms/transform_accumulating_async.rs
+++ b/src/query/pipeline/transforms/src/processors/transforms/transform_accumulating_async.rs
@@ -26,6 +26,10 @@ use databend_common_pipeline_core::processors::Processor;
pub trait AsyncAccumulatingTransform: Send {
const NAME: &'static str;
+ async fn on_start(&mut self) -> Result<()> {
+ Ok(())
+ }
+
async fn transform(&mut self, data: DataBlock) -> Result