MCPcopy Create free account
hub / github.com/apache/arrow / execute_plan

Method execute_plan

c_glib/test/test-project-node.rb:21–40  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def execute_plan(options)
22 plan = Arrow::ExecutePlan.new
23 numbers = build_int8_array([1, 2, 3, 4, 5])
24 strings = build_string_array(["a", "b", "a", "b", "a"])
25 table = build_table(number: numbers,
26 string: strings)
27 source_node_options = Arrow::SourceNodeOptions.new(table)
28 source_node = plan.build_source_node(source_node_options)
29 project_node = plan.build_project_node(source_node, options)
30 sink_node_options = Arrow::SinkNodeOptions.new
31 sink_node = plan.build_sink_node(project_node,
32 sink_node_options)
33 plan.validate
34 plan.start
35 plan.wait
36 reader = sink_node_options.get_reader(project_node.output_schema)
37 table = reader.read_all
38 plan.stop
39 table
40 end
41
42 def test_expressions
43 three_scalar = Arrow::Int8Scalar.new(3)

Callers

nothing calls this directly

Calls 4

stopMethod · 0.80
newMethod · 0.45
validateMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected