Skip to content

[Bug]: Restore v4.2.8 v1 table dumps with floating BIT_COUNT generated columns #33036

Open

Description

@XuPeng-SH

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

  1. On the official v4.2.8 Linux x86-64 release, create a table with a DOUBLE column and generated columns using BIT_COUNT(d) and BIT_COUNT(CAST(d AS DOUBLE)). Include both STORED and VIRTUAL forms.
  2. Insert rows with d = 3.9, -0.6, 3.5, NULL, flush the table, then use native DUMP TABLE to write a physical archive.
  3. 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 run LOAD TABLE from 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_COUNT binding 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.

Related #32506, #32924, #32920.

Activity

  1. added
    kind/bug
    on Nov 21, 2026
  2. changed the title [-][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[/+] on Nov 21, 2026
  3. self-assigned this
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions