Skip to content

Unexpected Result for NATURAL JOIN in TiFlash #60958

@bajinsheng

Description

@bajinsheng

Bug Report

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 DECIMAL ZEROFILL);
CREATE TABLE t1 (c0 BLOB);
INSERT IGNORE INTO t0 VALUES(-1749300172);
INSERT INTO t1 VALUES('aa'), ('-0.0');
ALTER TABLE t0 SET TIFLASH REPLICA 1;
ALTER TABLE t1 SET TIFLASH REPLICA 1;
SELECT COUNT(*) FROM t1 NATURAL JOIN t0; -- {1}

This query should return {2} if we execute the query immediately after ALTER statements.
However, if we wait until the tables t0 and t1 are copied into TIFLASH (5 seconds in my machine) and then execute the query, it returns {1}.

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

{2}

3. What did you see instead (Required)

{1}

4. What is your TiDB version? (Required)

tiup playground nightly --host 0.0.0.0 --kv 3 --tiflash 3

8.0.11-TiDB-v9.0.0-beta.1.pre-554-gb1a5536a64-dirty

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions