Skip to content

Commit 53fcbe8

Browse files
update TableProvider::scan
Ref: apache/datafusion#11516
1 parent 2b9b822 commit 53fcbe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dataset.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
use datafusion::catalog::Session;
1819
use pyo3::exceptions::PyValueError;
1920
/// Implements a Datafusion TableProvider that delegates to a PyArrow Dataset
2021
/// This allows us to use PyArrow Datasets as Datafusion tables while pushing down projections and filters
@@ -30,7 +31,6 @@ use datafusion::arrow::datatypes::SchemaRef;
3031
use datafusion::arrow::pyarrow::PyArrowType;
3132
use datafusion::datasource::{TableProvider, TableType};
3233
use datafusion::error::{DataFusionError, Result as DFResult};
33-
use datafusion::execution::context::SessionState;
3434
use datafusion::logical_expr::TableProviderFilterPushDown;
3535
use datafusion::physical_plan::ExecutionPlan;
3636
use datafusion_expr::Expr;
@@ -98,7 +98,7 @@ impl TableProvider for Dataset {
9898
/// parallelized or distributed.
9999
async fn scan(
100100
&self,
101-
_ctx: &SessionState,
101+
_ctx: &dyn Session,
102102
projection: Option<&Vec<usize>>,
103103
filters: &[Expr],
104104
// limit can be used to reduce the amount scanned

0 commit comments

Comments
 (0)