Repository navigation
Conversation
|
Updated this PR for the review comments:
Local verification:
|
|
CI rerun is green now. The decimal precision boundary review has been addressed in the current head: |
(cherry picked from commit 075e6d4)
|
Updated the branch with the same decimal256 coverage improvements used for the port PRs. Covered in this push:
Local validation on
Re-requesting review. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Found one remaining blocker: DATA BRANCH PICK still does not handle decimal256 primary keys. The PR adds decimal256 support for row materialization/output, but the PICK PK paths still only cover decimal64/decimal128. In pkg/frontend/data_branch_pick.go, extractPKVal decodes decimal64/decimal128/time-like fixed values but omits decimal256, and appendNumericStringToVec only parses decimal64/decimal128 literals. As a result, a table with primary key decimal(39,4) can reject literal KEYS(...) as an unsupported PK type, and subquery-key conflict formatting can read a fixed decimal256 vector through the fallback varlen path. Please add decimal256 handling to the PICK PK parse/format/extract paths and add regression coverage with decimal(39,4) as the primary key for literal and subquery KEYS. Required CI is green and the broader decimal/data-branch coverage looks good otherwise.
|
已处理 @XuPeng-SH 在 review 这次补齐了:
本地验证:
|
XuPeng-SH
left a comment
There was a problem hiding this comment.
Re-reviewed latest head with CI status ignored. The previous decimal256 DATA BRANCH PICK blocker is resolved: decimal256 is now handled in PK extraction, key formatting, literal parsing, numeric gap/PK filtering paths, and the related tuple/sort/merge/filter helpers. The added BVT covers decimal(39,4) primary-key PICK via both literal KEYS and subquery KEYS, plus remaining diff verification; existing/new unit coverage covers the helper paths. No blocking issue found in the fix approach.
Summary
save_query_result=oncan convert full-row diff results into vectors.565a0f71f671cb98c6693a762595f200010fdd1ato preserve string literal quotes in DATA BRANCH PICK subquery SQL.Root Cause
DATA BRANCH DIFFbuilt its output columns by converting only the engine type OID to a MySQL type. For DECIMAL columns, the width and scale metadata was lost, so saving query results could not map the MySQL DECIMAL column back to a MatrixOne decimal vector type and failed withunsupported mysql type 0.The cherry-picked DATA BRANCH PICK fix addresses a separate 3.0-dev issue where formatting the KEYS subquery without single-quote string formatting could turn predicates like
customer = 'Grace'into invalid or changed SQL.Validation
source $HOME/.zshrc && moenv && go test ./pkg/frontend -run 'TestDataBranchOutput|Test_convertRowsIntoBatch|TestMaterializeSubqueryUnified_PreservesStringLiteralQuotes' -count=1make buildsave_query_result=onwithdata branch diffover a DECIMAL column returned rows instead ofunsupported mysql type 0.Refs #24847