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

Method test_combine_chunks

c_glib/test/test-table.rb:229–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 end
228
229 def test_combine_chunks
230 table = build_table(
231 "visible" => Arrow::ChunkedArray::new([build_boolean_array([true, false, true]),
232 build_boolean_array([false, true]),
233 build_boolean_array([false])])
234 )
235 combined_table = table.combine_chunks
236 all_values = combined_table.n_columns.times.collect do |i|
237 column = combined_table.get_column_data(i)
238 column.n_chunks.times.collect do |j|
239 column.get_chunk(j).values
240 end
241 end
242 assert_equal([[[true, false, true, false, true, false]]],
243 all_values)
244 end
245
246 sub_test_case("#validate") do
247 def setup

Callers

nothing calls this directly

Calls 3

newMethod · 0.45
valuesMethod · 0.45
get_chunkMethod · 0.45

Tested by

no test coverage detected