Repository navigation
refactor show Physical plan - #18164
Merged
mergify[bot] merged 8 commits intoAug 19, 2024
Merged
Conversation
qingxinhome
requested review from
aunjgr,
badboynt1,
m-schen and
ouyuanning
as code owners
August 15, 2024 11:22
…atrixone into refactorPrintCompileScopes
m-schen
approved these changes
Aug 19, 2024
XuPeng-SH
added a commit
to XuPeng-SH/matrixone
that referenced
this pull request
Aug 19, 2024
* make sharding support logtail (matrixorigin#18208) Integrated sharding and logtail Approved by: @triump2020 * refactor show Physical plan (matrixorigin#18164) 物理计划侧,pipeline经过重构后,算子流结构由原来的连式结构 更新为树形结构, 因此在调试打印pipeline的代码需要重构,示例如下: ```plpgsql SQL:SELECT ROUND(SUM(distance), 2) AS total_distance from real_time_position WHERE time_stamp < 1694733800000 Scope 1 (Magic: Merge, mcpu: 1, Receiver: [4]) Pipeline: └── output └── projection └── projection └── merge group └── merge PreScopes: { Scope 1 (Magic: Merge, mcpu: 4, Receiver: [0, 1]) DataSource: cloud_device.real_time_position[time_stamp distance] Pipeline: └── connect to MergeReceiver 4 └── merge group └── merge PreScopes: { Scope 1 (Magic: Normal, mcpu: 4, Receiver: []) DataSource: cloud_device.real_time_position[time_stamp distance] Pipeline: └── connect to MergeReceiver 0 └── group └── projection └── filter └── tablescan Scope 2 (Magic: Normal, mcpu: 4, Receiver: []) DataSource: cloud_device.real_time_position[time_stamp distance] Pipeline: └── connect to MergeReceiver 1 └── group └── projection └── filter └── tablescan } } ``` Approved by: @m-schen * reload the cpu/mem setting if cgroup config changed. (matrixorigin#18167) changed: 1. reload the cpu / mem quota from cgroupv2 if `cpu.max`, `memory.max` is modified 2. fill the metadata.CNService with logpb.CNStore's Resource setting. no changed: 1. the cn, which running compile, still use its own `#cpu` to setup others cn `#cpu` (which should be `engine.Node.Mcpu`) Approved by: @zhangxu19830126, @volgariver6, @XuPeng-SH * fileservice: add IOVectorCache.Evict (matrixorigin#18199) add Evict method to caches. Approved by: @fengttt --------- Co-authored-by: fagongzi <[email protected]> Co-authored-by: qingxinhome <[email protected]> Co-authored-by: Jackson <[email protected]> Co-authored-by: reusee <[email protected]>
fengttt
pushed a commit
to fengttt/matrixone
that referenced
this pull request
May 7, 2026
物理计划侧,pipeline经过重构后,算子流结构由原来的连式结构 更新为树形结构, 因此在调试打印pipeline的代码需要重构,示例如下:
```plpgsql
SQL:SELECT ROUND(SUM(distance), 2) AS total_distance from real_time_position WHERE time_stamp < 1694733800000
Scope 1 (Magic: Merge, mcpu: 1, Receiver: [4])
Pipeline: └── output
└── projection
└── projection
└── merge group
└── merge
PreScopes: {
Scope 1 (Magic: Merge, mcpu: 4, Receiver: [0, 1])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 4
└── merge group
└── merge
PreScopes: {
Scope 1 (Magic: Normal, mcpu: 4, Receiver: [])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 0
└── group
└── projection
└── filter
└── tablescan
Scope 2 (Magic: Normal, mcpu: 4, Receiver: [])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 1
└── group
└── projection
└── filter
└── tablescan
}
}
```
Approved by: @m-schen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #18211
What this PR does / why we need it:
物理计划侧,pipeline经过重构后,算子流结构由原来的连式结构 更新为树形结构, 因此在调试打印pipeline的代码需要重构,示例如下: