Skip to content

Commit

Permalink
pub expose datafusion in ballista client
Browse files Browse the repository at this point in the history
this will simplify basic usage where we wont need
to include datafusion as dependency
  • Loading branch information
milenkovicm committed Jan 22, 2025
1 parent 8539c49 commit 312417f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions ballista/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@

pub mod extension;
pub mod prelude;
pub use datafusion;
6 changes: 3 additions & 3 deletions examples/examples/remote-sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
// specific language governing permissions and limitations
// under the License.

use ballista::prelude::*;
use ballista_examples::test_util;
use datafusion::{
use ballista::datafusion::{
common::Result,
execution::SessionStateBuilder,
prelude::{CsvReadOptions, SessionConfig, SessionContext},
};
use ballista::prelude::*;
use ballista_examples::test_util;

/// This example demonstrates executing a simple query against an Arrow data source (CSV) and
/// fetching results, using SQL
Expand Down
6 changes: 3 additions & 3 deletions examples/examples/standalone-sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
// specific language governing permissions and limitations
// under the License.

use ballista::prelude::{SessionConfigExt, SessionContextExt};
use ballista_examples::test_util;
use datafusion::{
use ballista::datafusion::{
common::Result,
execution::{options::ParquetReadOptions, SessionStateBuilder},
prelude::{SessionConfig, SessionContext},
};
use ballista::prelude::{SessionConfigExt, SessionContextExt};
use ballista_examples::test_util;

#[tokio::main]
async fn main() -> Result<()> {
Expand Down

0 comments on commit 312417f

Please sign in to comment.