Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
datafusion::datasource::csv - Rust
[go: Go Back, main page]

Module datafusion::datasource::csv[][src]

Expand description

CSV data source

This CSV data source allows CSV files to be used as input for queries.

Example:

use datafusion::datasource::TableProvider;
use datafusion::datasource::csv::{CsvFile, CsvReadOptions};

let testdata = datafusion::test_util::arrow_test_data();
let csvdata = CsvFile::try_new(
    &format!("{}/csv/aggregate_test_100.csv", testdata),
    CsvReadOptions::new().delimiter(b'|'),
).unwrap();
let schema = csvdata.schema();

Re-exports

pub use crate::physical_plan::csv::CsvReadOptions;

Structs

Represents a CSV file with a provided schema