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

Method test_generate_column_names

c_glib/test/test-csv-reader.rb:223–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 end
222
223 def test_generate_column_names
224 options = Arrow::CSVReadOptions.new
225 options.generate_column_names = true
226
227 table = Arrow::CSVReader.new(open_input(<<-CSV), options)
228"Start",2
229"Shutdown",9
230"Reboot",5
231 CSV
232 columns = {
233 "f0" => build_string_array(["Start", "Shutdown", "Reboot"]),
234 "f1" => build_int64_array([2, 9, 5]),
235 }
236 assert_equal(build_table(columns),
237 table.read)
238 end
239
240 def test_timestamp_parsers
241 options = Arrow::CSVReadOptions.new

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected