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

Method test_flush

c_glib/test/test-record-batch-builder.rb:64–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 end
63
64 def test_flush
65 require_gi_bindings(3, 3, 1)
66 arrays = {
67 "visible" => build_boolean_array([true, false, true]),
68 "point" => build_int32_array([1, -1, 0]),
69 }
70 arrays.each_with_index do |(_, array), i|
71 @builder.get_column_builder(i).append_values(array.values, [])
72 end
73 assert_equal(build_record_batch(arrays),
74 @builder.flush)
75
76 arrays = {
77 "visible" => build_boolean_array([false, true]),
78 "point" => build_int32_array([10, -10]),
79 }
80 arrays.each_with_index do |(_, array), i|
81 @builder.get_column_builder(i).append_values(array.values, [])
82 end
83 assert_equal(build_record_batch(arrays),
84 @builder.flush)
85 end
86end

Callers

nothing calls this directly

Calls 3

build_record_batchFunction · 0.85
append_valuesMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected