Repository navigation
fix(function): remove Decimal256 multiplication dispatch overhead - #30983
Conversation
|
Local verification uses only clean main and this candidate, built normally in separate checkouts. No combined candidate or source overlays. Comparison base: SF10: eight physical CPUs, 16 GiB CN SHARED cache, 32 GiB whole application including the private RAM image, no swap. Existing loaded image reused. Cold selected-query warmups excluded; profiles collected separately. No input/table/schema/row-count/reference/result verification.
Changes use the median of paired process ratios; columns show medians over six process generations. No aggregate gain overrides an individual regression. Main advanced after timing collection. The intervening commits change Python SDK/tests, CSV test fixtures, UNIX_TIMESTAMP(DATETIME) selection and persisted DDL validation, detached background table-statistics stock, cancelled keepalive handling and GC Bloom sizing. Decimal casts/arithmetic, vector/null/bitmap/type/memory-pool primitives and native build inputs are unchanged. TPC-H does not invoke UNIX_TIMESTAMP or persisted-expression DUMP/LOAD; its arithmetic argument types and query expressions are unchanged. Statistics/GC changes may affect background activity, so the published performance numbers remain explicitly attributed to the tested snapshot pair, not presented as a fresh measurement of the merged head. Reuse the unchanged decimal functional and performance evidence; rerun owning-package and full static validation on the merged head. Package/static checks and separate profile/resource gates passed. Software/source identities, raw timing records and profiles are retained locally; broader optimization issues stay open. |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 6e1ac645a49c45bc7d5c0909cff1b16fcf3bac3f
Assessment: approve
Reviewed all six changed files and affected callers. The typed driver removes dispatch overhead while retaining one arithmetic kernel and shared precision validation. NULL/mask handling, constant broadcasting, error propagation and result ownership remain coherent. No actionable correctness, design or performance defect remains.
Model: gpt-6-astra / xhigh
Session: 01a13dcf-1586-7a01-9000-d45e20995cf8 · slot 1 · generation 1
Validation:
-
Isolation preflight passed. Repository-owned provenance verification confirmed compatible native artifacts and matching native build inputs.
-
28 focused tests passed, covering broadcasting, reuse, NULL/masks, precision overflow, wide signed operands and type resolution.
-
Four alternating base/candidate benchmark pairs covered 69 cells. Single-row multiplication cost decreased approximately 33–35%; constant forms removed temporary allocations. Small initial DIV slowdowns did not reproduce in six independent, longer comparison pairs.
-
Frozen exact-head CI reports successful build, Ubuntu/x86 UT, coverage, Linux/arm64 SCA, PROXY BVT and PESSIMISTIC BVT. Skipped checks were not counted as passes.
-
Reconciled 28 command/source/exit receipts with retained logs. Evidence index: /home/xupeng/.local/state/mo-bot/jobs/f902077f7b59d10b7544b0c6/attempt-1/validation-index.json. Detailed scope and conclusions: review-notes.json in the same directory. Source remains unchanged.
Limitations:
-
No fresh end-to-end SF10/SF100 replay was run. Author-reported SF10 measurements concern the earlier cf40ea6 snapshot; scoped arithmetic dependencies match, but those figures are not presented as measurements of the current head.
-
Linked issue bodies and author raw timing/profile artifacts were absent from the frozen bundle. Approval covers this focused dispatch correction, not completion of the broader optimization issues.
Merge Queue Status
This pull request spent 1 hour 23 minutes 11 seconds in the queue, with no time running CI. ReasonPull request #30983 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Waiting for any of
All conditions
Tick the box to put this pull request back in the merge queue (same as
|
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30840 and #30838. This focused correction does not complete the broader optimization issue.
What this PR does / why we need it:
Route Decimal256 multiplication through a typed batch driver that reads resolved vector storage directly, classifies physical multi-value operands once and calls the existing kernel with explicit range proofs. Handle NULLs and selection masks before evaluation; broadcast constant results and ignore unused constant bitmap bits. Retain the existing multiplication tiers, scaling and overflow behavior. Share declared-result precision validation with ADD/SUB/DIV and cover their controls.
Validation: owning-package tests, full pre-push static checks, isolated local TPC-H SF10 Q1–Q22 and separate CPU profiles pass. The baseline is a real clean-main checkout; the candidate contains only this fix, with no source overlays. Six balanced process pairs use three scored calls per query after excluded cold warmups. The local performance gate passed; the detailed measurements below identify any independent confirmation used for initial slower-query signals. Detailed measurements are recorded in the PR comment.