Skip to content

[C++][Acero] record_batch_reader_source does not support select * limit 3 #47481

Description

@egolearner

Describe the bug, including details regarding any error messages, version, and platform.

    auto table = GetTable();
    auto reader = std::make_shared<arrow::TableBatchReader>(table.ValueOrDie());
    ac::Declaration plan = ac::Declaration::Sequence({
        {"record_batch_reader_source",
         ac::RecordBatchReaderSourceNodeOptions{reader}},
        {"fetch", ac::FetchNodeOptions{0, 3}},
    });
    return ExecutePlanAndCollectAsTableByBatchReader(std::move(plan));

error message:

Running Err:Invalid: Fetch node's input has no meaningful ordering and so limit/offset will be non-deterministic.  Please establish order in some way (e.g. by inserting an order_by node)%             

Component(s)

C++

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions