The result of mod expr is not correct
Open
@yibin87 is already working on this.
Since Mar 4, 2022.
component/compute
severity/minor
type/bug
- Dominant language
- C++
- Stars
- 1k
- Forks
- 423
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 24
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table t2(a double ,b float);
insert into t2 values(-1,1);
alter table t2 set tiflash replica 2;
select mod(a,b) in (0) from t2; -- result is 1
select mod(a,b) in (0,1) from t2; -- expect 1 but got 0
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
master
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.