Skip to content

Commit

Permalink
upgrade to datafusion 8
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp authored and rtyler committed May 28, 2022
1 parent c5c7bb5 commit 5a293dd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 16 deletions.
34 changes: 20 additions & 14 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ parquet-format = "~4.0.0"

arrow = "13"
parquet = "13"
datafusion = { git = "https://github.com/apache/arrow-datafusion.git", rev = "f943b6a65291c3de6403dde827cb411a050f4fa0", version = "7.0.0", optional = true }

crossbeam = { version = "0", optional = true }

Expand All @@ -71,6 +70,10 @@ async-trait = "0.1"
# version published in crates.io
# rust-dataframe = {version = "0.*", optional = true }

[dependencies.datafusion]
version = "8"
optional = true

[features]
rust-dataframe-ext = []
datafusion-ext = ["datafusion"]
Expand Down
6 changes: 5 additions & 1 deletion rust/src/delta_datafusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use datafusion::datafusion_data_access::object_store::local::LocalFileSystem;
use datafusion::datasource::file_format::parquet::ParquetFormat;
use datafusion::datasource::file_format::FileFormat;
use datafusion::datasource::listing::PartitionedFile;
use datafusion::datasource::TableProvider;
use datafusion::datasource::{TableProvider, TableType};
use datafusion::logical_plan::Expr;
use datafusion::physical_plan::file_format::FileScanConfig;
use datafusion::physical_plan::ExecutionPlan;
Expand Down Expand Up @@ -226,6 +226,10 @@ impl TableProvider for delta::DeltaTable {
)
}

fn table_type(&self) -> TableType {
TableType::Base
}

async fn scan(
&self,
projection: &Option<Vec<usize>>,
Expand Down

0 comments on commit 5a293dd

Please sign in to comment.