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

duplicate rows displayed when select internal tables with limit #18694

Open
ly9chee opened this issue Sep 25, 2024 · 1 comment
Open

duplicate rows displayed when select internal tables with limit #18694

ly9chee opened this issue Sep 25, 2024 · 1 comment
Assignees
Labels
type/bug Something isn't working

Comments

@ly9chee
Copy link
Contributor

ly9chee commented Sep 25, 2024

Describe the bug

select * from __internal_xxx_8_source_2;
image

select * from __internal_xxx_8_source_2 limit 10;
image

Error message/log

No response

To Reproduce

No response

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

PostgreSQL 13.14.0-RisingWave-2.0.0 (4c1649b)

Additional context

No response

@ly9chee ly9chee added the type/bug Something isn't working label Sep 25, 2024
@github-actions github-actions bot added this to the release-2.1 milestone Sep 25, 2024
@yihong0618
Copy link
Contributor

yihong0618 commented Sep 25, 2024

seems its right when the limit number great than some number

when select * from __internal_xxx_8_source_2 limit 1000; the answer is right.

For the different query plan;

without limit:

dev=> explain select offset_info from __internal_ad_ctr_5_source_11;
                                  QUERY PLAN                                  
------------------------------------------------------------------------------
 BatchExchange { order: [], dist: Single }
 └─BatchScan { table: __internal_ad_ctr_5_source_11, columns: [offset_info] }
(2 rows)

limit 10:

dev=> explain select offset_info from __internal_ad_ctr_5_source_11 limit 10;
                                         QUERY PLAN                                          
---------------------------------------------------------------------------------------------
 BatchLimit { limit: 10, offset: 0 }
 └─BatchExchange { order: [], dist: Single, sequential: true }
   └─BatchLimit { limit: 10, offset: 0 }
     └─BatchScan { table: __internal_ad_ctr_5_source_11, columns: [offset_info], limit: 10 }
(4 rows)

limit 100:

dev=> explain select offset_info from __internal_ad_ctr_5_source_11 limit 100;
                                         QUERY PLAN                                         
--------------------------------------------------------------------------------------------
 BatchExchange { order: [], dist: Single }
 └─BatchLimit { limit: 100, offset: 0 }
   └─BatchScan { table: __internal_ad_ctr_5_source_11, columns: [offset_info], limit: 100 }
(3 rows)

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
Development

No branches or pull requests

3 participants