Skip to content

Commit

Permalink
build: update exon (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck authored Nov 6, 2023
1 parent b26509e commit ebde4a3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ crate-type = ["cdylib"]
name = "biobear"

[dependencies]
arrow = {version = "46", features = ["pyarrow"]}
datafusion = "31"
exon = {version = "0.3.4-beta.3", features = ["all"]}
arrow = {version = "47", features = ["pyarrow"]}
datafusion = "32"
exon = {version = "0.3.8-beta.4", features = ["all"]}
pyo3 = "0.19"
thiserror = "1.0"
tokio = {version = "1", features = ["rt"]}
Expand Down
2 changes: 1 addition & 1 deletion src/bcf_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl BCFIndexedReader {
config = config.with_batch_size(batch_size);
}

let ctx = SessionContext::with_config(config);
let ctx = SessionContext::new_with_config(config);

let df = self._runtime.block_on(async {
match ctx.query_bcf_file(self.path.as_str(), region).await {
Expand Down
1 change: 1 addition & 0 deletions src/execution_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ impl PyExecutionResult {
Python::with_gil(|py| {
// Instantiate pyarrow Table object and use its from_batches method
let table_class = py.import("pyarrow")?.getattr("Table")?;

let args = PyTuple::new(py, &[batches]);
let table: PyObject = table_class.call_method1("from_batches", args)?.into();
Ok(table)
Expand Down
2 changes: 1 addition & 1 deletion src/exon_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::sync::Arc;

use arrow::ffi_stream::{export_reader_into_raw, ArrowArrayStreamReader, FFI_ArrowArrayStream};
use arrow::pyarrow::IntoPyArrow;
use datafusion::common::FileCompressionType;
use datafusion::datasource::file_format::file_compression_type::FileCompressionType;
use datafusion::prelude::{SessionConfig, SessionContext};
use exon::datasources::ExonFileType;
use exon::ffi::DataFrameRecordBatchStream;
Expand Down

0 comments on commit ebde4a3

Please sign in to comment.