Repository navigation
Conversation
- [ ] API-change - [ ] BUG - [ ] Improvement - [ ] Documentation - [x] Feature - [ ] Test and CI - [ ] Code Refactoring issue matrixorigin#23310 This PR supports the year type in the MatrixOne database. (cherry picked from commit cdd430d)
- add MySQL SET value parsing and normalization on top of uint64 bitmaps - preserve SET metadata across planner casts, DDL/DML, SHOW CREATE TABLE, DESC, information_schema, CTAS, and LOAD DATA - validate ALTER TABLE ... MODIFY COLUMN when the SET member list changes - allow table-defined secondary indexes on SET columns - preserve enum/set definition-order sorting for SELECT DISTINCT ... ORDER BY ... - add planner regression coverage and SET BVT coverage for secondary-index and DISTINCT ordering cases Validation: - go test ./pkg/container/types -run 'Test(NormalizeSetValues|ParseSet|ParseSetIndex|NormalizeSetValuesMaxMembers)' - env GOCACHE=/tmp/matrixone-go-cache go test ./pkg/sql/plan -run 'Test_isSameColumnType|TestQueryBuilder_bindOrderByEnum|TestQueryBuilder_bindOrderByEnumDistinct' - env GOCACHE=/tmp/matrixone-go-cache go test ./pkg/sql/colexec/external -run TestDummyDoesNotExist - SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk CPLUS_INCLUDE_PATH=/usr/local/var/homebrew/tmp/.cellar/llvm@21/21.1.8/include/c++/v1 env GOCACHE=/tmp/matrixone-go-cache make build - cd /Users/moukeyu/mo-tester && ./run.sh -m genrs -p /Users/moukeyu/matrixone-23912/test/distributed/cases/dtype/set.sql - cd /Users/moukeyu/mo-tester && ./run.sh -p /Users/moukeyu/matrixone-23912/test/distributed/cases/dtype/set.sql -g - [SUMMARY] COST : 0s, TOTAL :56, SUCCESS : 56, FAILED :0, IGNORED :0, ABNORAML :0, SUCCESS RATE : 100% Approved by: @LeftHandCold, @ouyuanning, @heni02, @aunjgr, @XuPeng-SH (cherry picked from commit 7b53ff1)
…atrixorigin#23440) Selective backport of 37a2eda from main: - Fix Decimal128 high-bit handling in hasTrailingZeros() - Add integer range validation in checkNoNeedCast() - Fix float precision limits for IEEE 754 safe ranges - Add early detection for decimal comparisons always false/true - Skip constant folding for division/modulo by zero - Smart type selection for decimal literals Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…rixorigin#23916) Selective backport of 688b68b from main: - Parser routes DECIMAL(M) with M>38 to T_decimal256 - Decimal256 parse/format, arithmetic, cast, compare, aggregate support - Wired through frontend output (constructByte), planner, and type system - Sort, ZoneMap, vector infrastructure for decimal256 - Excluded: parquet export (tracked in matrixorigin#24188), old aggexec files Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
matrixorigin#23524 backport) - Add overflow detection for float32/float64 arithmetic operations - Align exp() to return error on overflow instead of infinity - Backport from main commit 5a25a14 to 3.0-dev Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Backport commit d23b125 from main to 3.0-dev: - Add geometry/spatial types (GEOMETRY, POINT, LINESTRING, POLYGON, etc.) - Add ST_* spatial functions (ST_AsText, ST_GeomFromText, ST_X, ST_Y, etc.) - Add SRID attribute support for geometry columns - Add geometry type handling in planner, parser, frontend, and catalog - Add async fulltext index detection via IsIndexAsync in catalog - Fix Decimal256 vector setupFromData missing T_decimal256 case - Fix decimalIntegerDiv truncation regression from Decimal256 backport - Adapt tests for 3.0-dev API differences Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Fix information_schema.COLUMNS view: GENERATION_EXPRESSION uses
placeholder cast('') since attr_has_generated doesn't exist in 3.0-dev
- Remove explain plan tests incompatible with mo-tester 4-space separator
- Regenerate func_geometry.result from 3.0-dev mo-service
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
ck89119
requested review from
LeftHandCold,
XuPeng-SH,
aptend,
aunjgr,
gouhongshen,
iamlinjunhong,
ouyuanning and
xzxiong
as code owners
April 25, 2026 09:23
|
|
Co-authored-by: Copilot <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #24184
What this PR does / why we need it:
Backports 8 MySQL type compatibility features from
mainto3.0-dev:cdd430d0d5) —YEARcolumn type, storage, wire protocol, cast, aggregate7b53ff1215) —SETcolumn type, storage, wire protocol, cast, plannerc01918106b) — parse1e2,1.5e-3as DECIMAL literals54d9635908) — allow casting TEXT to CHAR/VARCHAR37a2eda6a6) — fix comparison scale alignment andDIVrange validation688b68b618) — supportDECIMAL(65,30)via 256-bit decimal type5a25a14008) — align overflow behavior with MySQL forEXP()and arithmeticd23b1258e5) —GEOMETRY/POINT/etc. column types,SRIDattribute,ST_*spatial functions, spatial index supportKey 3.0-dev adaptation changes
GeneratedColandattr_has_generatedreferences (main-only fields not present in 3.0-dev catalog)catalog.Asyncconstant with string literal"async"(not backported in 3.0-dev)IsIndexAsynchelper tocatalogpackage for async fulltext index detectionT_decimal256missing case invector.setupFromData(caused panic on Decimal256 queries)decimalIntegerDiv(regression from Decimal256 backport)information_schema.COLUMNSview to use placeholder forGENERATION_EXPRESSION(no generated column support in 3.0-dev)MakeVarcharVector,MakeVarlenaVectorsignatures differ)TestOrd,TestBuildWithInsert,RewriteCountNotNullColToStarcount, etc.)Verification
make✅make static-check✅ (no new errors introduced)pkg/sql/plan/...,pkg/sql/plan/function/...✅test/distributed/cases/function/func_geometry.test— 756/756 (100%) ✅