| 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 |