File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/query/service/src/pipelines/processors/transforms/new_hash_join/memory Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,20 @@ impl BasicHashJoin {
6060 state : Arc < BasicHashJoinState > ,
6161 ) -> Result < Self > {
6262 let settings = ctx. get_settings ( ) ;
63- let block_size = settings. get_max_block_size ( ) ? as usize ;
64- let block_bytes = settings. get_max_block_size ( ) ? as usize ;
63+ let squash_block = SquashBlocks :: new (
64+ settings. get_max_block_size ( ) ? as _ ,
65+ settings. get_max_block_bytes ( ) ? as _ ,
66+ ) ;
6567
6668 Ok ( BasicHashJoin {
6769 desc,
6870 state,
6971 method,
7072 function_ctx,
71- squash_block : SquashBlocks :: new ( block_size , block_bytes ) ,
73+ squash_block,
7274 } )
7375 }
76+
7477 pub ( crate ) fn add_block ( & mut self , mut data : Option < DataBlock > ) -> Result < ( ) > {
7578 let mut squashed_block = match data. take ( ) {
7679 None => self . squash_block . finalize ( ) ?,
@@ -128,6 +131,7 @@ impl BasicHashJoin {
128131 std:: mem:: swap ( & mut chunks[ chunk_index] , & mut chunk_block) ;
129132 }
130133
134+ log:: info!( "build_hash_table chunk_index{chunk_index}" ) ;
131135 self . build_hash_table ( keys_block, chunk_index) ?;
132136
133137 Ok ( Some ( ProgressValues {
You can’t perform that action at this time.
0 commit comments