Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0f0f0c1
planner: add read billing RU model
winoros Jun 30, 2026
e644416
test: cover read billing RU model
winoros Jun 30, 2026
e7b9689
executor: expose read billing base units in statement summary
winoros Jul 2, 2026
690b858
docs: design read billing calibration surface
winoros Jul 2, 2026
421e3ce
stmt-summary read billing demo calibration tables
winoros Jul 2, 2026
2a68ce5
stmtsummary: tighten read billing aggregation bounds
winoros Jul 2, 2026
98c8fdf
stmtsummary: preserve read billing overflow status on merge
winoros Jul 2, 2026
ce53f6d
docs: design TiDB write billing units
winoros Jul 7, 2026
8117350
docs: refine load data write billing design
winoros Jul 7, 2026
612f0cf
docs: iterate read billing actual bytes design
winoros Jul 8, 2026
97791cc
executor: use actual bytes for read billing
winoros Jul 8, 2026
fff344e
planner: add write preview RU for DML
winoros Jul 9, 2026
cff80e8
planner: add TiDB KV mutation preview RU
winoros Jul 9, 2026
87528ca
planner: refine preview RU operator costing
winoros Jul 15, 2026
567942b
planner: add join and aggregation output RU units
winoros Jul 16, 2026
16a5420
executor: log preview RU units in general log
winoros Jul 16, 2026
9205384
docs: stabilize preview RU resource formula plan
winoros Jul 21, 2026
e4d6f46
docs: add FTS score special column design
winoros Jul 21, 2026
5bec583
docs: fix preview RU write request ownership
winoros Jul 21, 2026
385d6e6
docs: complete preview RU design review
winoros Jul 21, 2026
0310c5f
planner: implement preview RU v4 resource formula
winoros Jul 22, 2026
10fbbd3
add some comments
qw4990 Jul 24, 2026
1d5da39
remove fixed_events, input_rows/bytes
qw4990 Jul 24, 2026
a0c6f71
planner: report DML PointGet read requests
winoros Jul 24, 2026
89d0d65
planner: count DML cop read requests from runtime stats
winoros Jul 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- `pkg/distsql/distsql_test.go` - Tests normal select.
- `pkg/distsql/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/distsql/request_builder_test.go` - Tests table handles to KV ranges.
- `pkg/distsql/select_result_test.go` - Tests update coprocessor runtime stats.
- `pkg/distsql/select_result_test.go` - Tests coprocessor runtime-stat updates, including exact plan-ID row summaries, last-plan scan-detail ownership/provenance counts, multi-response aggregation, plan-local Cop/CopStream RPC access, independent expected-task coverage, and close-time stats-only handling that cannot replay stale summaries.

## pkg/distsql/context

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
## pkg/executor

### Tests
- `pkg/executor/adapter_test.go` - executor: Tests format SQL.
- `pkg/executor/adapter_internal_test.go` - executor: Tests private adapter runtime accounting, including preview RU General Log gates, mutation `cpu_work` plus raw-unit provenance, DML/source/side aggregation, serialization, and deterministic ordering.
- `pkg/executor/adapter_test.go` - executor: Tests statement adapter behavior, including RU v2 finalization and self-describing preview RU General Log completion after lazy SELECT close, DML/early errors, compile-error suppression, cursor-detach gating, repeated finish calls, and EXPLAIN ANALYZE DML commit errors.
- `pkg/executor/analyze_test.go` - executor: Tests analyze index extract top n.
- `pkg/executor/analyze_utils_test.go` - executor: Tests get analyze panic err.
- `pkg/executor/batch_point_get_test.go` - executor: Tests batch point get lock exist key.
Expand All @@ -29,7 +30,7 @@
- `pkg/executor/executor_failpoint_test.go` - executor: Tests TiDB last txn info commit mode.
- `pkg/executor/executor_pkg_test.go` - executor: Tests build KV ranges for index join without CWC.
- `pkg/executor/executor_required_rows_test.go` - executor: Tests limit required rows.
- `pkg/executor/explain_test.go` - executor: Tests explain analyze memory.
- `pkg/executor/explain_test.go` - executor: Tests EXPLAIN ANALYZE formats, including production-default uncalibrated v4 units and absent totals, distinct read/write request output units, DML PointGet read-request publication, six pushed TiKV operator classes (including an explicitly ordered StreamAgg) with native Unistore's incomplete scan-width fail-closed behavior, bounded scan/transport/point-lookup failures, all raw DML mutation diagnostics with gated mutation `cpu_work`, statement-summary/metrics output versions, restricted/feature-off isolation, and legacy v3 behavior retained as explicitly superseded coverage.
- `pkg/executor/explain_unit_test.go` - executor: Tests explain analyze invoke next and close.
- `pkg/executor/explainfor_test.go` - executor: Tests explain for.
- `pkg/executor/grant_test.go` - executor: Tests grant global.
Expand Down Expand Up @@ -188,12 +189,12 @@
- `pkg/executor/join/anti_semi_join_probe_test.go` - executor/join: Tests anti-semi join basic.
- `pkg/executor/join/bench_test.go` - executor/join: Tests hash table build.
- `pkg/executor/join/concurrent_map_test.go` - executor/join: Tests concurrent map.
- `pkg/executor/join/hash_table_v1_test.go` - executor/join: Tests hash row container.
- `pkg/executor/join/hash_table_v1_test.go` - executor/join: Tests hash row container, including V1 NAAJ null-bucket rows in HashJoin state accounting.
- `pkg/executor/join/hash_table_v2_test.go` - executor/join: Tests hash table size.
- `pkg/executor/join/inner_join_probe_test.go` - executor/join: Tests inner join probe basic.
- `pkg/executor/join/inner_join_spill_test.go` - executor/join: Tests inner join spill basic.
- `pkg/executor/join/join_row_table_test.go` - executor/join: Tests heap object can move.
- `pkg/executor/join/join_stats_test.go` - executor/join: Tests hash join runtime stats.
- `pkg/executor/join/join_stats_test.go` - executor/join: Tests HashJoin V1/V2 runtime stats, valid-key state-row accounting, overflow rejection, and clone/merge preservation.
- `pkg/executor/join/join_table_meta_test.go` - executor/join: Tests join table meta key mode.
- `pkg/executor/join/joiner_test.go` - executor/join: Tests required rows.
- `pkg/executor/join/left_outer_anti_semi_join_probe_test.go` - executor/join: Tests left-outer anti-semi join probe basic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### Tests
- `pkg/metrics/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/metrics/metrics_internal_test.go` - Tests retained labels.
- `pkg/metrics/metrics_internal_test.go` - Tests retained labels and preview-RU bounded metric propagation, including distinct read/write request units, dimension-qualified mutation `cpu_work`, raw mutation samples, and measured zero base-unit samples.
- `pkg/metrics/metrics_test.go` - Tests metrics.

## pkg/metrics/common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
### Tests
- `pkg/planner/core/binary_plan_test.go` - planner/core: Tests binary plan generation and size limits.
- `pkg/planner/core/cbo_test.go` - planner/core: Benchmarks optimizer plan selection.
- `pkg/planner/core/common_plans_test.go` - planner/core: Tests LOAD DATA line/field defaults.
- `pkg/planner/core/common_plans_test.go` - planner/core: Tests common plans plus preview RU gating, private v4 semantic weights and overflow rejection, independent read/write request units and weights, expression-slot counts for Agg/Join/Window families, Sort CPU work plus TopN input saturation/zero-count/checked bounds, UnionScan direct-child CPU work, plan-local DML cop-reader and PointGet RPC ownership with isolation from statement counters, real distsql ScanDetail ownership/provenance and fail-closed coverage, HashJoin state inputs, mutation normalization into dimension-qualified `cpu_work` with raw diagnostics, and statement-local DML/COMMIT request ownership.
- `pkg/planner/core/enforce_mpp_test.go` - planner/core: Tests row-size impact on TiFlash MPP cost.
- `pkg/planner/core/exhaust_physical_plans_test.go` - planner/core: Tests index join lookup filter analysis and range building.
- `pkg/planner/core/expression_test.go` - planner/core: Tests AST expression eval (between/case/cast).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- `pkg/session/bootstrap_test.go` - session: Tests MySQL DB tables.
- `pkg/session/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/session/session_test.go` - session: Tests get start mode.
- `pkg/session/tidb_test.go` - session: Tests do map handle nil.
- `pkg/session/tidb_test.go` - session: Tests domain-map basics, per-statement RUv2 isolation including pessimistic DML/COMMIT write-request snapshots, and all four preview KV mutation APIs including failed attempts.
- `pkg/session/upgrade_test.go` - session: Tests upgrade to ver functions check.

## pkg/session/cursor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
## pkg/util/execdetails

### Tests
- `pkg/util/execdetails/execdetails_test.go` - util/execdetails: Tests string.
- `pkg/util/execdetails/execdetails_test.go` - util/execdetails: Tests runtime-detail formatting, cop summary/task aggregation, and ScanDetail attachment provenance snapshots.
- `pkg/util/execdetails/main_test.go` - Configures default goleak settings and registers testdata.

## pkg/util/expensivequery
Expand Down Expand Up @@ -528,15 +528,16 @@
### Tests
- `pkg/util/stmtsummary/evicted_test.go` - util/stmtsummary: Tests map to evicted count datum.
- `pkg/util/stmtsummary/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/util/stmtsummary/read_billing_test.go` - util/stmtsummary: Tests preview RU dimension aggregation, caps, distinct read/write request units, DML-kind separation for mutation `cpu_work` and raw units, and v4 detail retention with zero legacy convenience totals.
- `pkg/util/stmtsummary/statement_summary_test.go` - util/stmtsummary: Tests set up.

## pkg/util/stmtsummary/v2

### Tests
- `pkg/util/stmtsummary/v2/column_test.go` - util/stmtsummary/v2: Tests column.
- `pkg/util/stmtsummary/v2/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/util/stmtsummary/v2/reader_test.go` - util/stmtsummary/v2: Tests time range overlap.
- `pkg/util/stmtsummary/v2/record_test.go` - util/stmtsummary/v2: Tests stmt record.
- `pkg/util/stmtsummary/v2/reader_test.go` - util/stmtsummary/v2: Tests time ranges plus current/history preview RU rows and backward-compatible DML kind reads.
- `pkg/util/stmtsummary/v2/record_test.go` - util/stmtsummary/v2: Tests statement records, including preview RU DML kind aggregation and JSON round trips.
- `pkg/util/stmtsummary/v2/stmtsummary_benchmark_test.go` - util/stmtsummary/v2: Tests stmt summary add single workload.
- `pkg/util/stmtsummary/v2/stmtsummary_test.go` - util/stmtsummary/v2: Tests stmt window.

Expand Down
Loading