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

Function dataset___CsvFileFormat__Make

r/src/dataset.cpp:289–300  ·  view source on GitHub ↗

[[dataset::export]]

Source from the content-addressed store, hash-verified

287
288// [[dataset::export]]
289std::shared_ptr<ds::CsvFileFormat> dataset___CsvFileFormat__Make(
290 const std::shared_ptr<arrow::csv::ParseOptions>& parse_options,
291 const std::shared_ptr<arrow::csv::ConvertOptions>& convert_options,
292 const std::shared_ptr<arrow::csv::ReadOptions>& read_options) {
293 auto format = std::make_shared<ds::CsvFileFormat>();
294 format->parse_options = *parse_options;
295 auto scan_options = std::make_shared<ds::CsvFragmentScanOptions>();
296 if (convert_options) scan_options->convert_options = *convert_options;
297 if (read_options) scan_options->read_options = *read_options;
298 format->default_fragment_scan_options = std::move(scan_options);
299 return format;
300}
301
302// [[dataset::export]]
303std::shared_ptr<ds::JsonFileFormat> dataset___JsonFileFormat__Make(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected