Skip to content

Refactor reader 1 merge main - #94

Merged
triump2020 merged 37 commits into
refactor-reader-1from
refactor-reader-1-merge-main
Aug 1, 2024
Merged

triump2020 merged 37 commits into
refactor-reader-1from
refactor-reader-1-merge-main

Conversation

@triump2020

Copy link
Copy Markdown
Owner

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

YANGGMM and others added 30 commits July 29, 2024 10:53
从channel里收数据的任务应该只由merge算子来完成,join算子只负责call子节点,而不是直接访问channel

Approved by: @aunjgr, @m-schen
以前的pipeline会在阻塞算子处断开。现在不需要这个逻辑了。避免pipeline在不必要的地方断开。

Approved by: @ouyuanning, @XuPeng-SH
减少broadcast join中不必要的merge scope,减少pipeline的打断

Approved by: @ouyuanning
fix nil pointer in Merge function of stats info

Approved by: @zhangxu19830126
Implement Encode() and Decode() functions by AES

Approved by: @fengttt, @heni02, @m-schen
Some packers may be used after Close. Make them work.

Approved by: @XuPeng-SH
增加sql 长度监控项。用于定位问题。

Approved by: @qingxinhome
1. reduce `TransferDestPos` size from 12B to 8B, which can reduce ~25%(16B -> 12B) memory usage for transfer map.
2. During a merge commit, avoid creating a map with rowid as values to save memory. Only generate the corresponding rowid when needed for transfer, using the TransferMap produced by the merge and createObjs.

Result:
Before:
![tmp k3FnO9DlPr](https://github.com/user-attachments/assets/b40ba6f0-f6d5-4d2c-9aad-191ae47f2280)


After:
![tmp sbw8STJdBx](https://github.com/user-attachments/assets/29abd2a3-0346-409e-858b-664bfa8d0033)

Diff:
![image](https://github.com/user-attachments/assets/cf16f961-1df4-4b24-bb75-686a1b16753d)

Approved by: @LeftHandCold, @zhangxu19830126, @XuPeng-SH
…rigin#17801)

fix bug: panic when get vector (type.Oid is T_any) from pool

Approved by: @m-schen, @XuPeng-SH, @aunjgr
在某些场景下,broadcast join的probe端会merge不止一次。 这个pr的目标是保证一定只merge一次。
之前测试场景覆盖不够充分,现在已经重新跑了多个测试场景。

Approved by: @m-schen, @ouyuanning, @aunjgr
该pr本身没有实质性逻辑改动,将message从process包中独立出来,并修改message的api接口,为后续重构做准备

Approved by: @qingxinhome, @triump2020, @m-schen, @ouyuanning, @fengttt, @aunjgr, @XuPeng-SH
change
1. support session variable `disable_agg_statement`
- default: off
- if set on, this session will do NO statement aggregation.
2. base on `disable_agg_statement`, fix 2 bvt case
- case: result_count.sql
- case: statement_query_type_1.sql

Approved by: @heni02, @daviszhen
More constant fold for expression executor

Approved by: @m-schen, @heni02
triump2020 and others added 7 commits August 1, 2024 15:27
Support for online commands of Checkpoint analysis tools

Approved by: @aptend, @LeftHandCold, @XuPeng-SH
# Conflicts:
#	pkg/objectio/block_info.go
#	pkg/pb/api/api.pb.go
#	pkg/sql/compile/runtime_filter.go
#	pkg/vm/engine/disttae/cache/catalog.go
#	pkg/vm/engine/disttae/engine.go
#	pkg/vm/engine/disttae/logtailreplay/partition_state.go
#	pkg/vm/engine/disttae/partition_reader.go
#	pkg/vm/engine/disttae/reader.go
#	pkg/vm/engine/disttae/tools.go
#	pkg/vm/engine/disttae/txn.go
#	pkg/vm/engine/disttae/txn_table.go
#	pkg/vm/engine/disttae/types.go
#	pkg/vm/engine/disttae/util.go
#	pkg/vm/engine/test/disttae_engine_test.go
#	pkg/vm/engine/test/testutil/util.go
@triump2020
triump2020 merged commit 98461c6 into refactor-reader-1 Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.