Skip to content

Data lossy column type modification makes TiFlash data inconsistent #61455

@Lloyd-Pottiger

Description

@Lloyd-Pottiger

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Create a table t
  2. Insert data more than 100 MB
  3. Add a column nullable col with default a
  4. Do a lossy column type modification and change default value to null
  5. Run update t set col = null where col = a
  6. Run the following query, then we can find the result is inconsistent.
set @@tidb_isolation_read_engines='tiflash'; select count(*) from t where col = a;
set @@tidb_isolation_read_engines='tikv'; select count(*) from t where col = a;

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.impact/inconsistencyincorrect/inconsistency/inconsistentreport/customerCustomers have encountered this bug.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions