Skip to content

Commit

Permalink
Move file format config.rs to live with the rest of the datasource co…
Browse files Browse the repository at this point in the history
…de (#5406)
  • Loading branch information
alamb authored Feb 27, 2023
1 parent 8202a39 commit 58cd1bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions datafusion/core/src/datasource/file_format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub mod avro;
pub mod csv;
pub mod file_type;
pub mod json;
pub mod options;
pub mod parquet;

use std::any::Any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use arrow::datatypes::{DataType, Schema, SchemaRef};
use async_trait::async_trait;
use datafusion_common::DataFusionError;

use super::context::{SessionConfig, SessionState};
use crate::datasource::file_format::avro::DEFAULT_AVRO_EXTENSION;
use crate::datasource::file_format::csv::DEFAULT_CSV_EXTENSION;
use crate::datasource::file_format::file_type::FileCompressionType;
Expand All @@ -38,6 +37,7 @@ use crate::datasource::{
listing::ListingOptions,
};
use crate::error::Result;
use crate::execution::context::{SessionConfig, SessionState};

/// Options that control the reading of CSV files.
///
Expand Down
3 changes: 2 additions & 1 deletion datafusion/core/src/execution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
pub mod context;
pub mod disk_manager;
pub mod memory_pool;
pub mod options;
// backwards compatibility
pub use crate::datasource::file_format::options;
pub mod registry;
pub mod runtime_env;

Expand Down

0 comments on commit 58cd1bf

Please sign in to comment.