Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
The official v4.2.8 writer and PR #32920 against main.
Commit ID
595efa8e9fa235705158a027da0c54357acdb589 (reader).
Other Environment Information
Isolated Linux x86-64 instances with the official MatrixOne v4.2.8 release and #32920.
Actual Behavior
Reproduced on isolated instances. The official writer emitted a v1 manifest with one physical object. The current binary rejected the replayed target with 20301: target table schema does not match table dump. Independently, once schema validation passes, the v1 loader has no bound-expression payload to distinguish the released and fresh overloads and rejects sensitive bindings. These are separate validation points.
Expected Behavior
A compatible archived table can be restored with the source expression semantics when the binding is independently verifiable.
Steps to Reproduce
- On the official v4.2.8 Linux x86-64 release, create a table with a DOUBLE column and generated columns using
BIT_COUNT(d)andBIT_COUNT(CAST(d AS DOUBLE)). Include both STORED and VIRTUAL forms. - Insert rows with
d = 3.9, -0.6, 3.5, NULL, flush the table, then use nativeDUMP TABLEto write a physical archive. - On fix: stabilize floating BIT_COUNT conversion across plans and upgrades #32920 at
595efa8e9fa2, create a target table from the archive's CREATE SQL and runLOAD TABLEfrom the original stage.
Additional information
A standalone physical DUMP TABLE archive written by MatrixOne v4.2.8 can be rejected by a newer server when the table has floating-point BIT_COUNT generated columns. Restoring the objects and binding the generated columns as fresh DDL can also change results on subsequent writes. Track this separately from the query planner fixes in #32920.
- Validate the complete schema and archived object metadata against an unedited v4.2.8 physical fixture. Explain and cover any structural fingerprint mismatch.
- Preserve the source's executable expression binding, including the released FLOAT/DOUBLE overload IDs 8/9, when archive-specific evidence identifies that source. The native v1 manifest has schema and object metadata but carries neither the source build identity nor the expression hash.
- After restore, compare the stored and virtual results for archived rows and for a new INSERT and UPDATE. An explicit DOUBLE CAST of 3.9 under the released
BIT_COUNTbinding yields 1, while a fresh binding yields 2. - Keep v2/v3 bound payload validation, and verify failure with ambiguous or contradictory evidence leaves the target definition and data unchanged. Keep reconstruction bounded and use the existing atomic installation path.
Activity
[-][Bug] Restore v4.2.8 v1 table dumps with floating BIT_COUNT generated columns[/-][+][Bug]: Restore v4.2.8 v1 table dumps with floating BIT_COUNT generated columns[/+]docs(skills): strengthen upgrade compatibility checks (#33712)