Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions datafusion/datasource/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ default = ["compression"]
# consumers that never serialize plans pay nothing. Mirrors the `proto` feature
# on `datafusion-physical-plan`.
proto = [
"dep:prost",
"dep:datafusion-proto-models",
"datafusion-physical-plan/proto",
]
Expand Down Expand Up @@ -75,6 +76,7 @@ log = { workspace = true }
object_store = { workspace = true }
parking_lot = { workspace = true }
pin-project-lite = { workspace = true }
prost = { workspace = true, optional = true }
rand = { workspace = true }
tempfile = { workspace = true, optional = true }
tokio = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion datafusion/datasource/src/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub mod projection;
/// Protobuf conversions for [`FileRange`], [`PartitionedFile`] and
/// [`FileGroup`], gated on the `proto` feature.
#[cfg(feature = "proto")]
mod proto;
pub mod proto;
pub mod schema_adapter;
pub mod sink;
pub mod source;
Expand Down
12 changes: 12 additions & 0 deletions datafusion/datasource/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
// specific language governing permissions and limitations
// under the License.

//! Serialization support for data sources.
//!
//! Custom sources use the name-keyed decoder API in [`registry`](crate::proto::registry).
//!
//! Protobuf conversions for the file-scan leaf types owned by this crate:
//! [`FileRange`], [`PartitionedFile`] and [`FileGroup`].
//!
Expand All @@ -30,6 +34,14 @@
//! the value, and the orphan rule allows it here because one side of each
//! conversion is a type this crate owns.

pub mod registry;

pub use datafusion_proto_models::ProtoDecoderRegistry;
pub use registry::{
ExtensionDataSourceFromProto, data_source_names, extension_data_source_node,
register_data_source,
};

use std::sync::Arc;

use chrono::{TimeZone, Utc};
Expand Down
Loading
Loading