(columns)
| 259 | end |
| 260 | |
| 261 | def build_record_batch(columns) |
| 262 | n_rows = columns.collect {|_, array| array.length}.min || 0 |
| 263 | fields = columns.collect do |name, array| |
| 264 | Arrow::Field.new(name, array.value_data_type) |
| 265 | end |
| 266 | schema = Arrow::Schema.new(fields) |
| 267 | Arrow::RecordBatch.new(schema, n_rows, columns.values) |
| 268 | end |
| 269 | |
| 270 | def build_file_uri(path) |
| 271 | absolute_path = File.expand_path(path) |
nothing calls this directly
no test coverage detected