Skip to content

CU calculation & metric improvement - #14871

Merged
mergify[bot] merged 37 commits into
matrixorigin:mainfrom
xzxiong:cu_improvement
Mar 12, 2024
Merged

mergify[bot] merged 37 commits into
matrixorigin:mainfrom
xzxiong:cu_improvement

Conversation

@xzxiong

@xzxiong xzxiong commented Mar 8, 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 #https://github.com/matrixorigin/MO-Cloud/issues/2622, https://github.com/matrixorigin/MO-Cloud/issues/2005

What this PR does / why we need it:

changes

  1. support calculate cu while collect statement_info
  2. add new metric sql_statement_cu, group by sql_source_type
    • add new table system_metrics.sql_statement_cu for this metric
  3. add new buildin function: mo_cu() and mo_cu_v1()
  4. add new configuration OBCUConfig to set price config.

@xzxiong
xzxiong requested a review from a user March 8, 2024 09:20
@matrix-meow matrix-meow added the size/XL Denotes a PR that changes [1000, 1999] lines label Mar 8, 2024
@mergify mergify Bot added the kind/feature label Mar 8, 2024
@xzxiong
xzxiong requested a review from reusee as a code owner March 11, 2024 06:37
@mergify
mergify Bot merged commit f214303 into matrixorigin:main Mar 12, 2024
xzxiong added a commit to xzxiong/matrixone that referenced this pull request Mar 13, 2024
changes
1. support calculate cu while collect statement_info
2. add new metric sql_statement_cu, group by sql_source_type
- add new table `system_metrics.sql_statement_cu` for this metric
3. add new buildin function: `mo_cu()` and `mo_cu_v1()`
4. add new configuration `OBCUConfig` to set price config.

Approved by: @m-schen, @nnsgmsone, @heni02, @reusee, @badboynt1, @aptend, @daviszhen, @aunjgr
@xzxiong xzxiong mentioned this pull request Mar 13, 2024
1 of 7 tasks
mergify Bot pushed a commit that referenced this pull request Mar 13, 2024
cherry-pick #14871, #14927, #14945
changes
1. support calculate cu while collect statement_info
2. add new metric sql_statement_cu, group by sql_source_type
- add new table `system_metrics.sql_statement_cu` for this metric
3. add new buildin function: `mo_cu()` and `mo_cu_v1()`
4. add new configuration `OBCUConfig` to set price config.

Approved by: @daviszhen, @aptend, @nnsgmsone, @ouyuanning, @m-schen, @badboynt1, @heni02, @aunjgr, @zhangxu19830126, @sukki37
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
changes
1. support calculate cu while collect statement_info
2. add new metric sql_statement_cu, group by sql_source_type
- add new table `system_metrics.sql_statement_cu` for this metric
3. add new buildin function: `mo_cu()` and `mo_cu_v1()`
4. add new configuration `OBCUConfig` to set price config.

Approved by: @m-schen, @nnsgmsone, @heni02, @reusee, @badboynt1, @aptend, @daviszhen, @aunjgr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature size/XL Denotes a PR that changes [1000, 1999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants