Skip to content

Session disable agg stmt - #17802

Merged
mergify[bot] merged 11 commits into
matrixorigin:mainfrom
xzxiong:session_disable_agg_stmt
Aug 1, 2024
Merged

mergify[bot] merged 11 commits into
matrixorigin:mainfrom
xzxiong:session_disable_agg_stmt

Conversation

@xzxiong

@xzxiong xzxiong commented Jul 30, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

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

Which issue(s) this PR fixes:

issue ##16530

What this PR does / why we need it:

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

@xzxiong
xzxiong requested a review from a user July 30, 2024 09:49
@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Jul 30, 2024
@mergify mergify Bot added the kind/bug Something isn't working label Jul 30, 2024
@mergify
mergify Bot merged commit 579cc83 into matrixorigin:main Aug 1, 2024
@xzxiong
xzxiong deleted the session_disable_agg_stmt branch August 1, 2024 06:11
@xzxiong xzxiong mentioned this pull request Aug 1, 2024
1 of 7 tasks
triump2020 added a commit to triump2020/matrixone that referenced this pull request Aug 1, 2024
* support restore pitr phase2 (matrixorigin#17772)

support restore pitr phase2

Approved by: @iamlinjunhong, @daviszhen

* split merge receivers from join operators  (matrixorigin#17759)

从channel里收数据的任务应该只由merge算子来完成,join算子只负责call子节点,而不是直接访问channel

Approved by: @aunjgr, @m-schen

* fix unnecessary pipeline broken (matrixorigin#17777)

以前的pipeline会在阻塞算子处断开。现在不需要这个逻辑了。避免pipeline在不必要的地方断开。

Approved by: @ouyuanning, @XuPeng-SH

* fix unnecessary merge scope in broadcast join (matrixorigin#17778)

减少broadcast join中不必要的merge scope,减少pipeline的打断

Approved by: @ouyuanning

* [bug] stats: fix nil pointer (matrixorigin#17767)

fix nil pointer in Merge function of stats info

Approved by: @zhangxu19830126

* Implement MySQL Encode()/Decode() function by AES (matrixorigin#17568)

Implement Encode() and Decode() functions by AES

Approved by: @fengttt, @heni02, @m-schen

* Revert "fix unnecessary merge scope in broadcast join (matrixorigin#17778)" (matrixorigin#17787)

先revert引入问题的pr,再继续调查

Approved by: @ouyuanning

* container/types: make empty Packer valid for use (matrixorigin#17780)

Some packers may be used after Close. Make them work.

Approved by: @XuPeng-SH

* add sql length metric (matrixorigin#17792)

增加sql 长度监控项。用于定位问题。

Approved by: @qingxinhome

* reduce flush&merge memory usage (matrixorigin#17768)

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

* refactor the three tables (matrixorigin#17721)

* Revert "Small reader update (#75)"

This reverts commit f39edde.

* Revert "Revert "Small reader update (#75)""

This reverts commit a414863.

* support restore cluster by pitr (matrixorigin#17796)

support restore cluster by pitr

Approved by: @iamlinjunhong, @daviszhen

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

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

Approved by: @m-schen, @XuPeng-SH, @aunjgr

* remove unnecessary merge scope in broadcast join (matrixorigin#17808)

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

Approved by: @m-schen, @ouyuanning, @aunjgr

* refactor message framework (matrixorigin#17786)

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

Approved by: @qingxinhome, @triump2020, @m-schen, @ouyuanning, @fengttt, @aunjgr, @XuPeng-SH

* Handle data race when get table def (matrixorigin#17774)

* Session disable agg stmt (matrixorigin#17802)

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

* fileservice: add active reader metrics to object storage (matrixorigin#17799)

more metrics for active object storage readers.

Approved by: @zhangxu19830126, @fengttt

* More constant fold for expression executor (matrixorigin#17779)

More constant fold for expression executor

Approved by: @m-schen, @heni02

* Mo inspect checkpoint command (matrixorigin#17795)

Support for online commands of Checkpoint analysis tools

Approved by: @aptend, @LeftHandCold, @XuPeng-SH

* merge main

* make pb

---------

Co-authored-by: YANGGMM <[email protected]>
Co-authored-by: nitao <[email protected]>
Co-authored-by: LiuBo <[email protected]>
Co-authored-by: Charles Chi Le <[email protected]>
Co-authored-by: reusee <[email protected]>
Co-authored-by: davis zhen <[email protected]>
Co-authored-by: Wei Ziran <[email protected]>
Co-authored-by: aptend <[email protected]>
Co-authored-by: ou yuanning <[email protected]>
Co-authored-by: qingxinhome <[email protected]>
Co-authored-by: Jackson <[email protected]>
Co-authored-by: Wenbin <[email protected]>
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants