Skip to content

CU calculation & metric improvement in 1.1 - #14948

Merged
mergify[bot] merged 5 commits into
matrixorigin:1.1-devfrom
xzxiong:1.1-cu
Mar 13, 2024
Merged

mergify[bot] merged 5 commits into
matrixorigin:1.1-devfrom
xzxiong:1.1-cu

Conversation

@xzxiong

@xzxiong xzxiong commented Mar 13, 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:

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.

xzxiong added 3 commits March 13, 2024 14:42
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 requested a review from a user March 13, 2024 07:20
@matrix-meow matrix-meow added the size/XL Denotes a PR that changes [1000, 1999] lines label Mar 13, 2024
@mergify
mergify Bot requested a review from sukki37 March 13, 2024 07:20
@mergify mergify Bot added the kind/feature label Mar 13, 2024
@mergify
mergify Bot merged commit f3c29f0 into matrixorigin:1.1-dev Mar 13, 2024
@xzxiong
xzxiong deleted the 1.1-cu branch March 14, 2024 03:02
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.