pub struct CreateExternalTable {
    pub schema: DFSchemaRef,
    pub name: String,
    pub location: String,
    pub file_type: String,
    pub has_header: bool,
    pub delimiter: char,
    pub table_partition_cols: Vec<String>,
    pub if_not_exists: bool,
    pub definition: Option<String>,
    pub file_compression_type: String,
}
Expand description

Creates an external table.

Fields

schema: DFSchemaRef

The table schema

name: String

The table name

location: String

The physical location

file_type: String

The file type of physical file

has_header: bool

Whether the CSV file contains a header

delimiter: char

Delimiter for CSV

table_partition_cols: Vec<String>

Partition Columns

if_not_exists: bool

Option to not error if table already exists

definition: Option<String>

SQL used to create the table, if available

file_compression_type: String

File compression type (GZIP, BZIP2)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.