Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ mod normalize;
mod runner;

pub use error::*;
pub use normalize::*;
pub use runner::*;
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use super::super::conversion::*;
use super::error::{DFSqlLogicTestError, Result};

/// Converts `batches` to a result as expected by sqllogictest.
pub(crate) fn convert_batches(batches: Vec<RecordBatch>) -> Result<Vec<Vec<String>>> {
pub fn convert_batches(batches: Vec<RecordBatch>) -> Result<Vec<Vec<String>>> {
if batches.is_empty() {
Ok(vec![])
} else {
Expand Down
3 changes: 3 additions & 0 deletions datafusion/sqllogictest/src/engines/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ mod conversion;
mod datafusion_engine;
mod output;

pub use datafusion_engine::convert_batches;
pub use datafusion_engine::DataFusion;
pub use output::DFColumnType;
pub use output::DFOutput;

#[cfg(feature = "postgres")]
mod postgres_engine;
Expand Down
2 changes: 1 addition & 1 deletion datafusion/sqllogictest/src/engines/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ impl ColumnType for DFColumnType {
}
}

pub(crate) type DFOutput = DBOutput<DFColumnType>;
pub type DFOutput = DBOutput<DFColumnType>;
3 changes: 3 additions & 0 deletions datafusion/sqllogictest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

mod engines;

pub use engines::convert_batches;
pub use engines::DFColumnType;
pub use engines::DFOutput;
pub use engines::DataFusion;

#[cfg(feature = "postgres")]
Expand Down
Loading