Skip to content

Unexpected Result byCRC32() and SIN() Functions #60664

@bajinsheng

Description

@bajinsheng

Bug Report

1. Minimal reproduce step (Required)

CREATE TABLE t0(c0 BIGINT);
INSERT t0 VALUES(1674610777);
SELECT t0.c0 FROM t0 WHERE CRC32(SIN(t0.c0)) >= t0.c0; -- Empty set

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

CRC32(SIN(t0.c0)) = 1782146908, which is greater than 1674610777, so this query should return one row, instead of empty.

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

+--------------------------------------------+
| version()                                  |
+--------------------------------------------+
| 8.0.11-TiDB-v9.0.0-beta.1.pre-563-gea52376 |
+--------------------------------------------+

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