Skip to content

Commit dbf2e05

Browse files
committed
Fix example: remove as_any from TableProvider impl
TableProvider now extends Any directly.
1 parent 74e3422 commit dbf2e05

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

examples/custom_execution_plan.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ use datafusion_proto::protobuf;
4747
use datafusion_proto::protobuf::proto_error;
4848
use futures::{TryStreamExt, stream};
4949
use prost::Message;
50-
use std::any::Any;
5150
use std::fmt::{self, Formatter};
5251
use std::ops::Range;
5352
use std::sync::Arc;
@@ -97,10 +96,6 @@ struct NumbersTableProvider {
9796

9897
#[async_trait]
9998
impl TableProvider for NumbersTableProvider {
100-
fn as_any(&self) -> &dyn Any {
101-
self
102-
}
103-
10499
fn schema(&self) -> SchemaRef {
105100
numbers_schema()
106101
}

0 commit comments

Comments
 (0)