Skip to content

Limit doesn't drop on first batch when limit size == fetch size. #5064

@Dandandan

Description

@Dandandan

Describe the bug
In the When batch size equals the fetch size, datafusion doesn't drop the input.
It will poll for another batch from the input rather than dropping immediately.

To Reproduce

Expected behavior
It should drop the input directly instead of polling for a second.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions