Skip to content

Commit 32234af

Browse files
shivbhatia10Shiv Bhatiaalamb
authored
Re-export apache-avro when avro feature flag is set (#17388)
Co-authored-by: Shiv Bhatia <[email protected]> Co-authored-by: Andrew Lamb <[email protected]>
1 parent ec4413e commit 32234af

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

datafusion/core/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,9 @@ pub use object_store;
751751
#[cfg(feature = "parquet")]
752752
pub use parquet;
753753

754+
#[cfg(feature = "avro")]
755+
pub use datafusion_datasource_avro::apache_avro;
756+
754757
// re-export DataFusion sub-crates at the top level. Use `pub use *`
755758
// so that the contents of the subcrates appears in rustdocs
756759
// for details, see https://github.com/apache/datafusion/issues/6648

datafusion/datasource-avro/src/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ pub mod avro_to_arrow;
3030
pub mod file_format;
3131
pub mod source;
3232

33+
pub use apache_avro;
3334
pub use file_format::*;

0 commit comments

Comments
 (0)