Skip to content

Commit

Permalink
fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Oct 4, 2024
1 parent ed3f0e1 commit cf82eb7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

use std::{cmp, sync::Arc, usize};
use std::{cmp, sync::Arc};

use datafusion::{
datasource::MemTable,
Expand Down Expand Up @@ -210,9 +210,9 @@ impl GeneratedSessionContextBuilder {
/// The generated params for [`SessionContext`]
#[derive(Debug, Clone, Copy)]
pub struct SessionContextParams {
batch_size: usize,
target_partitions: usize,
skip_partial_params: SkipPartialParams,
pub batch_size: usize,
pub target_partitions: usize,
pub skip_partial_params: SkipPartialParams,
}

/// Partial skipping parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl DatasetGenerator {
let sort_exprs = sort_keys
.iter()
.map(|key| {
let col_expr = col(&key, &schema)?;
let col_expr = col(key, schema)?;
Ok(PhysicalSortExpr::new_default(col_expr))
})
.collect::<Result<Vec<_>>>()?;
Expand Down
4 changes: 2 additions & 2 deletions datafusion/core/tests/fuzz_cases/aggregation_fuzzer/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ impl AggregationFuzzTestTask {
e.row_idx,
e.lhs_row,
e.rhs_row,
pretty_format_batches(&task_result).unwrap(),
pretty_format_batches(&expected_result).unwrap(),
pretty_format_batches(task_result).unwrap(),
pretty_format_batches(expected_result).unwrap(),
);

// Then we just panic
Expand Down
2 changes: 1 addition & 1 deletion test-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ workspace = true
arrow = { workspace = true }
datafusion-common = { workspace = true, default-features = true }
env_logger = { workspace = true }
rand = { workspace = true }
paste = "1.0.15"
rand = { workspace = true }

0 comments on commit cf82eb7

Please sign in to comment.