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

wrong result when lowcardinality optimazation with multiple delete conditions #5712

Closed
stdpain opened this issue May 1, 2022 · 0 comments · Fixed by #5713
Closed

wrong result when lowcardinality optimazation with multiple delete conditions #5712

stdpain opened this issue May 1, 2022 · 0 comments · Fixed by #5713
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@stdpain
Copy link
Contributor

stdpain commented May 1, 2022

Steps to reproduce the behavior (Required)

table dates was from SSB100g

create table dates_bak like dates;
insert into dates_bak select * from dates;
analyze full table dates_bak;

delete from dates_bak where d_yearmonth = "Jan1992";
delete from dates_bak where d_weekdayfl > 0 and d_yearmonth in ('Feb1992', 'Feb1993', 'Feb1994');
delete from dates_bak where d_yearmonth = "Jan1993";
delete from dates_bak where d_yearmonth = "Jan1994";

select count(*) from dates_bak;
-- run mulit times
select count(d_yearmonth) from dates_bak;

Expected behavior (Required)

mysql> select count(d_yearmonth) from dates_bak;
+--------------------+
| count(d_yearmonth) |
+--------------------+
|               2403 |
+--------------------+
1 row in set (0.01 sec)

Real behavior (Required)

mysql> select count(d_yearmonth) from dates_bak;
+--------------------+
| count(d_yearmonth) |
+--------------------+
|               2378 |
+--------------------+
1 row in set (0.01 sec)

StarRocks version (Required)

  • main
  • 2.0.4
  • 2.1.4
  • 2.2-rc01 2.2-rc02
@stdpain stdpain added the type/bug Something isn't working label May 1, 2022
@imay imay closed this as completed in #5713 May 5, 2022
@wangruin wangruin added this to the 2.2 milestone May 5, 2022
jaogoy pushed a commit to jaogoy/starrocks that referenced this issue Nov 15, 2023
Signed-off-by: EsoragotoSpirit <wanglichen@starrocks.com>
jaogoy pushed a commit to jaogoy/starrocks that referenced this issue Nov 15, 2023
)

Signed-off-by: EsoragotoSpirit <wanglichen@starrocks.com>
(cherry picked from commit 6f28ab1)

Co-authored-by: 絵空事スピリット <wanglichen@starrocks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
3 participants