| 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) |
| 166 | message,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 |