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]

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

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 = std::env::var("ARROW_TEST_DATA").expect("ARROW_TEST_DATA not defined");
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::execution::physical_plan::csv::CsvReadOptions;

Structs

CsvBatchIterator

Iterator over CSV batches

CsvFile

Represents a CSV file with a provided schema