Skip to content

merge main - #105

Merged
daviszhen merged 98 commits into
0827-cdcfrom
0911-merge-main
Sep 12, 2024
Merged

daviszhen merged 98 commits into
0827-cdcfrom
0911-merge-main

Conversation

@daviszhen

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:

w-zr and others added 30 commits September 2, 2024 22:02
)

forbidden restore database or table to other account

Approved by: @iamlinjunhong, @heni02
…aphore.Read (matrixorigin#18463)

should hold the semaphore during the Read, otherwise it will not limit the I/O concurrency to S3.

Approved by: @fengttt
use the unique package to reduce memory consumption

Approved by: @m-schen
print debug message when waiting message timeout
return err instead of panic

Approved by: @fengttt, @aunjgr, @m-schen
refactor tombstone related code for further usage

Approved by: @triump2020, @LeftHandCold
1. close abort vector
2. close object batches

Approved by: @XuPeng-SH
运行时展开pipeline,目前对dispatch算子有些特别处理。
现在将相关逻辑移动到compile阶段,并对其进行简化。
好处一是简化运行时的逻辑,方便后续连接pipeline,二是运行之前就能看到完整的pipeline,便于调试问题
修复了一处导致daily run hang住的bug

Approved by: @ouyuanning, @fengttt, @aunjgr, @sukki37, @heni02
fix the condition for runtime filters, try to push runtime filters in more cases.
fix some comment

Approved by: @aunjgr
sometimes the stats for filters are wrong, and top value optimization will be disabled.
remove restriction for top value optimization

Approved by: @aunjgr, @heni02
…n#18380)

Change the type string in SHOW CREATE TABLE to lowercase, consistent with MySQL, aim to be compatible with Python SQLAlchemy

Approved by: @ck89119, @aunjgr, @heni02
修复load local逻辑中函数过早返回而没有读完client发送的数据包

Approved by: @daviszhen
release hashmap memory when input batch rowcnt is 0

Approved by: @m-schen, @aunjgr
fix unmatched column sizes in a read batch

Approved by: @XuPeng-SH
mo的pipeline运行方式有四种,remoterun,mergerun,parallelrun and normalrun.
remoterun发送到远端cn执行。 mergerun在协程中运行所有prescope并监控对应返回。
parallelrun在运行时展开scope,normalrun直接从rootOp算子开始call。
以前pipeline断开比较碎,run方法可以写的很简单,现在将pipeline进行连接以后,需要更复杂的run方法。
一条pipeline可能同时经历remoterun->mergerun->parallelrun->normalrun

Approved by: @m-schen
refactor insert scope and delete merge scope, reuse some logic to make code more clear.
optimize shuffle scopes to break after shuffle operator.
remove unused code

Approved by: @ouyuanning, @heni02
add UT for S3 Delete

Approved by: @XuPeng-SH
fix bug: make sure vector will be free in some case

Approved by: @m-schen, @badboynt1, @aunjgr, @fengttt
fix TestGetInitPort

Approved by: @reusee
fix transfer page race

Approved by: @XuPeng-SH
…origin#18549)

refactor pipelines of broadcast join to reduce pipeline break
remove unused codes to make code more clear

Approved by: @ouyuanning, @m-schen, @heni02, @aunjgr
jiangxinmeng1 and others added 26 commits September 9, 2024 07:00
Fix test dedup snapshot3, update StartTS instead of SnapshotTS

Approved by: @XuPeng-SH
…n#18644)

fix a bug in external scan stats which cause performance regression

Approved by: @ouyuanning
…igin#18617)

之前对于分区表的insert和delete, 每次使用的batch都是新创建出来的(见原来的GroupByPartitionForDelete和GroupByPartitionForInsert).

现在让它们复用算子自带的buffer

Approved by: @m-schen
to ensure the hashtable is not allocating excessive memory.

Approved by: @XuPeng-SH, @aunjgr
preinsert, 对于复合主键,cluster by,提前申请内存并复用。

Approved by: @badboynt1, @ouyuanning, @m-schen, @aunjgr
…rigin#18659)

在pipeline重构过程中,为了减少pipeline的打断,尝试让dispatch算子也支持多并发。
但是这个尝试过程中遇到了很多问题。现在先将这一逻辑回退,让dispatch算子保持单并发。

Approved by: @ouyuanning
do not merge persisted tombstones during flush

Approved by: @XuPeng-SH
fix data race

Approved by: @XuPeng-SH
1. Roiwd and Blockid are using bytes.Compare, while byte order does not indicate the actual order of Rowid and Blockid
2. without this fix, the order of Rowid in the tombstone file is disordered and it will cause data loss during scan
3. Without this fix, the rowid column zone map may be wrong
4. This PR also improve the performance of Blockid.Compare|Objectid.Compare|Rowid.Compare

Approved by: @LeftHandCold, @badboynt1, @ouyuanning, @aunjgr, @m-schen, @triump2020
bug fix: Top Operator should not change input batch

Approved by: @heni02, @m-schen
Fix and refactor the compilation and analysis of the join nodes:

Approved by: @badboynt1, @ouyuanning, @m-schen
…ct (matrixorigin#18675)

clear the tables in global stats when logtail re-connect

Approved by: @LeftHandCold, @XuPeng-SH
fix select version

Approved by: @heni02, @qingxinhome
…can node in plan (matrixorigin#18682)

fix a bug that cause load performance regression when there is sink_scan node in plan

Approved by: @ouyuanning
The system must complete the catalog cache replay before it can process the push logtail for the three tables.

Approved by: @XuPeng-SH
fix non reserved keyword period

Approved by: @m-schen
…ler optimizations (matrixorigin#18693)

using pointers as function arguments to avoid relying on golang compiler optimizations.

The compiler sometimes chooses to allocate memory on the heap for passed parameters, leading to performance degradation

<img width="1789" alt="image" src="https://github.com/user-attachments/assets/6a9b6a89-205b-4501-800d-02cb1a6ae167">


The compiler sometimes chooses to allocate memory on the heap for passed parameters, leading to performance degradation

<img width="1792" alt="image" src="https://github.com/user-attachments/assets/edfc8d8e-8d12-430a-ac4d-ec421396805d">

Approved by: @LeftHandCold, @triump2020
Add restart txn interface for reuse txn operator to avoid mem allocate.

Approved by: @daviszhen, @reusee, @qingxinhome
malloc: make decorator types generic

malloc: add cacheline padding to ShardedAllocator

Approved by: @qingxinhome
…8711)

bug fix: unique key/secondary key get incorrect value

Approved by: @heni02, @badboynt1, @aunjgr
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.