pub struct CatalogOptions {
pub create_default_catalog_and_schema: bool,
pub default_catalog: String,
pub default_schema: String,
pub information_schema: bool,
pub location: Option<String>,
pub format: Option<String>,
pub has_header: bool,
pub newlines_in_values: bool,
}
Expand description
Options related to catalog and directory scanning
See also: SessionConfig
Fields§
§create_default_catalog_and_schema: bool
Whether the default catalog and schema should be created automatically.
default_catalog: String
The default catalog name - this impacts what SQL queries use if not specified
default_schema: String
The default schema name - this impacts what SQL queries use if not specified
information_schema: bool
Should DataFusion provide access to information_schema
virtual tables for displaying schema information
location: Option<String>
Location scanned to load tables for default
schema
format: Option<String>
Type of TableProvider
to use when loading default
schema
has_header: bool
Default value for format.has_header
for CREATE EXTERNAL TABLE
if not specified explicitly in the statement.
newlines_in_values: bool
Specifies whether newlines in (quoted) CSV values are supported.
This is the default value for format.newlines_in_values
for CREATE EXTERNAL TABLE
if not specified explicitly in the statement.
Parsing newlines in quoted values may be affected by execution behaviour such as
parallel file scanning. Setting this to true
ensures that newlines in values are
parsed successfully, which may reduce performance.
Trait Implementations§
Source§impl Clone for CatalogOptions
impl Clone for CatalogOptions
Source§fn clone(&self) -> CatalogOptions
fn clone(&self) -> CatalogOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl ConfigField for CatalogOptions
impl ConfigField for CatalogOptions
Source§impl Debug for CatalogOptions
impl Debug for CatalogOptions
Source§impl Default for CatalogOptions
impl Default for CatalogOptions
Source§impl PartialEq for CatalogOptions
impl PartialEq for CatalogOptions
impl StructuralPartialEq for CatalogOptions
Auto Trait Implementations§
impl Freeze for CatalogOptions
impl RefUnwindSafe for CatalogOptions
impl Send for CatalogOptions
impl Sync for CatalogOptions
impl Unpin for CatalogOptions
impl UnwindSafe for CatalogOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)