Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
unused imports removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yashkothari42 committed Mar 6, 2024
1 parent 5b79c8a commit 533c7fb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 62 deletions.
14 changes: 0 additions & 14 deletions datafusion-integration/src/execution/mod.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
use datafusion::arrow::array::RecordBatch;
use datafusion::error::DataFusionError::NotImplemented;
use datafusion::error::Result;
use datafusion::physical_plan::collect;

use datafusion::execution::context::SessionContext;
use datafusion::physical_plan::ExecutionPlan;
use datafusion_proto::protobuf::physical_plan_node::PhysicalPlanType;
use datafusion_proto::protobuf::PhysicalPlanNode;
mod operators;
mod operators_conversion;
use datafusion::datasource::physical_plan::FileScanConfig;
use datafusion::datasource::physical_plan::{CsvConfig, CsvOpener};
use std::os::unix::net::SocketAddr;
use std::sync::Arc;
use vayu::pipeline::Source;
use vayu::pipeline::{self, IntermediateOperator};

use vayu::operators::scan::ScanOperator;
use vayu::pipeline::Pipeline;

pub async fn get_pipeline(plan: PhysicalPlanNode) -> pipeline::Pipeline {
Expand Down Expand Up @@ -61,7 +48,6 @@ fn make_pipeline(pipeline: &mut pipeline::Pipeline, node: PhysicalPlanNode) {

pipeline.source_operator = Some(Box::new(so) as Box<dyn Source>);
pipeline.state.schema = Some(schema);
// TODO: add ScanOperator to pipeline
}

_ => {
Expand Down
45 changes: 0 additions & 45 deletions datafusion-integration/src/execution/operators.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ use std::sync::Arc;
use vayu::operators::filter::FilterOperator;

use vayu::operators::scan::ScanOperator;
use vayu::pipeline::Source;
fn str_to_byte(s: &String, descriptions: &str) -> Result<u8> {
if s.len() != 1 {
return Err(NotImplemented(String::from("size not one")));
Expand Down
2 changes: 0 additions & 2 deletions datafusion-integration/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
// specific language governing permissions and limitations
// under the License.

use arrow::record_batch::RecordBatch;
use arrow::util::pretty;
use datafusion::error::Result;
use datafusion::execution::context::SessionState;
use datafusion::physical_plan::displayable;

use datafusion::{dataframe, prelude::*};
use datafusion_proto::physical_plan::{AsExecutionPlan, DefaultPhysicalExtensionCodec};
Expand Down

0 comments on commit 533c7fb

Please sign in to comment.