Skip to content

Commit b247b82

Browse files
authored
Fix compilation errors and warnings (#102)
* Remove unused stream partitioner * Remove unused imports * Add tokio-stream as a dev-dependency * Correctly configure clippy
1 parent daa6843 commit b247b82

File tree

6 files changed

+5
-169
lines changed

6 files changed

+5
-169
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ tpchgen = { git = "https://github.com/clflushopt/tpchgen-rs", rev = "c8d82343252
5353
tpchgen-arrow = { git = "https://github.com/clflushopt/tpchgen-rs", rev = "c8d823432528eed4f70fca5a1296a66c68a389a8" }
5454
parquet = "55.2.0"
5555
arrow = "55.2.0"
56+
tokio-stream = "0.1.17"

src/errors/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::upper_case_acronyms, clippy::vec_box)]
2+
13
use crate::errors::datafusion_error::DataFusionErrorProto;
24
use datafusion::common::internal_datafusion_err;
35
use datafusion::error::DataFusionError;

src/flight_service/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
mod do_get;
22
mod service;
33
mod session_builder;
4-
mod stream_partitioner_registry;
54

65
pub(crate) use do_get::DoGet;
76

src/flight_service/stream_partitioner_registry.rs

Lines changed: 0 additions & 166 deletions
This file was deleted.

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(clippy::all)]
2+
13
mod channel_manager;
24
mod common;
35
mod composed_extension_codec;

src/test_utils/plan.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ use datafusion::common::plan_err;
33
use datafusion::common::tree_node::{Transformed, TreeNode};
44
use datafusion::error::DataFusionError;
55
use datafusion::physical_expr::Partitioning;
6-
use datafusion::physical_optimizer::PhysicalOptimizerRule;
76
use datafusion::physical_plan::aggregates::{AggregateExec, AggregateMode};
8-
use datafusion::physical_plan::repartition::RepartitionExec;
97
use datafusion::physical_plan::ExecutionPlan;
108
use std::sync::Arc;
119

0 commit comments

Comments
 (0)