(options)
| 19 | include Helper::Buildable |
| 20 | |
| 21 | def execute_plan(options) |
| 22 | plan = Arrow::ExecutePlan.new |
| 23 | source_node = plan.build_source_node(options) |
| 24 | sink_node_options = Arrow::SinkNodeOptions.new |
| 25 | sink_node = plan.build_sink_node(source_node, |
| 26 | sink_node_options) |
| 27 | plan.validate |
| 28 | plan.start |
| 29 | plan.wait |
| 30 | reader = sink_node_options.get_reader(source_node.output_schema) |
| 31 | table = reader.read_all |
| 32 | plan.stop |
| 33 | table |
| 34 | end |
| 35 | |
| 36 | def test_record_batch_reader |
| 37 | numbers = build_int8_array([1, 2, 3, 4, 5]) |