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

Method test_allow_null_strings

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

Source from the content-addressed store, hash-verified

159 end
160
161 def test_allow_null_strings
162 options = Arrow::CSVReadOptions.new
163 options.null_values = ["Start", "Restart"]
164 options.allow_null_strings = true
165 table = Arrow::CSVReader.new(open_input(<<-CSV), options)
166message,count
167"Start",2
168"Shutdown",9
169"Restart",5
170 CSV
171 columns = {
172 "message" => build_string_array([nil, "Shutdown", nil]),
173 "count" => build_int64_array([2, 9, 5]),
174 }
175 assert_equal(build_table(columns),
176 table.read)
177 end
178
179 def test_n_skip_rows
180 options = Arrow::CSVReadOptions.new

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected