Skip to content

Commit 010dc6c

Browse files
committed
fixes
1 parent c290b2a commit 010dc6c

3 files changed

Lines changed: 274 additions & 9 deletions

File tree

datafusion/common/src/format.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ pub enum MetricCategory {
256256
///
257257
/// See [`MetricCategory`] for the determinism properties that motivate
258258
/// this filter.
259-
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
259+
#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)]
260260
pub enum ExplainAnalyzeCategories {
261261
/// Show all metrics regardless of category (the default).
262+
#[default]
262263
All,
263264
/// Show only metrics whose category is in the list.
264265
/// Metrics that have no declared category are still included
@@ -268,12 +269,6 @@ pub enum ExplainAnalyzeCategories {
268269
Only(Vec<MetricCategory>),
269270
}
270271

271-
impl Default for ExplainAnalyzeCategories {
272-
fn default() -> Self {
273-
Self::All
274-
}
275-
}
276-
277272
impl FromStr for ExplainAnalyzeCategories {
278273
type Err = DataFusionError;
279274

datafusion/physical-plan/src/analyze.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ impl ExecutionPlan for AnalyzeExec {
241241
}
242242

243243
/// Creates the output of AnalyzeExec as a RecordBatch
244+
#[expect(clippy::too_many_arguments)]
244245
fn create_output_batch(
245246
verbose: bool,
246247
show_statistics: bool,

0 commit comments

Comments
 (0)