Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same query results are inconsistent on TiKV and TiFlash when using DATE_FORMAT #57733

Open
fenfeng9 opened this issue Nov 26, 2024 · 0 comments
Labels
type/bug The issue is confirmed as a bug.

Comments

@fenfeng9
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

prepare data

drop table if exists t0;
CREATE TABLE t0(c0 DOUBLE , PRIMARY KEY(c0));
INSERT IGNORE  INTO t0 VALUES (0.7137570398985166);
ALTER TABLE t0 SET TIFLASH REPLICA 1;

execute query

SELECT /*+ read_from_storage(tikv[t0]) */  t0.c0 FROM t0 WHERE DATE_FORMAT(t0.c0, 0.9639405634969745);
SELECT /*+ read_from_storage(tiflash[t0]) */  t0.c0 FROM t0 WHERE DATE_FORMAT(t0.c0, 0.9639405634969745);

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

The results of the two queries are equal.

3. What did you see instead (Required)

Query1 result:
empty

Query2 result:
Image

4. What is your TiDB version? (Required)

Release Version: v8.4.0
Edition: Community
Git Commit Hash: 1a9f0fa
Git Branch: HEAD
UTC Build Time: 2024-11-07 15:18:43
GoVersion: go1.23.2
Race Enabled: false
Check Table Before Drop: false
Store: tikv

@fenfeng9 fenfeng9 added the type/bug The issue is confirmed as a bug. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

1 participant