AI Slop Code RIsk Monitor

apache/datafusion

Apache DataFusion SQL Query Engine

7.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for apache/datafusion, a Rust project with 9,432 GitHub stars. SynthScan examined 1,113,214 lines of code across 2704 source files, recording 6229 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 7.8 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.8
Adjusted Signal
7.8
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
9.4K
Stars
Rust
Language
1.1M
Lines of Code
2.7K
Files
6.2K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 20.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 5265 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

Are imports declared and package/API names verified? 11 finding(s).

Agent Over-Engineering Ratio 14.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 959 finding(s).

PR Review Velocity Impact 30.8/100 · MEDIUM

Which changes need focused human review? 6229 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 2MEDIUM 985LOW 5242

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 6229 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block5045 hits · 4684 pts
SeverityFileLineSnippetContext
LOW.asf.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWCargo.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWCargo.toml341# - Runtime performance: how fast the resulting binaries executeCOMMENT
LOWCargo.toml361# - ci-optimized: derived from `release` but enables debug assertions and usesCOMMENT
LOWlychee.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWrustfmt.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWrustfmt.toml21# ignore generated filesCOMMENT
LOWtaplo.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWpre-commit.sh1#!/bin/bashCOMMENT
LOWlicenserc.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWrust-toolchain.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/Cargo.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/tpch.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/data_gen.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/data_gen.rs241/// use cases.COMMENT
LOWtest-utils/src/lib.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/lib.rs81/// multiple batchesCOMMENT
LOWtest-utils/src/string_gen.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/tpcds.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/decimal.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/boolean.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/binary.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/mod.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/string.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/random_data.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest-utils/src/array_gen/primitive.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/Cargo.toml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/tests/cli_integration.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/tests/cli_integration.rs61/// How many times to try bringing up the RustFS container before failing.COMMENT
LOWdatafusion-cli/examples/cli-session-context.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/print_format.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/exec.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/exec.rs441 false,COMMENT
LOWdatafusion-cli/src/exec.rs461/// * `location`: A string reference representing the location of the object store.COMMENT
LOWdatafusion-cli/src/command.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/lib.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/functions.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/functions.rs901///COMMENT
LOWdatafusion-cli/src/object_storage.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/cli_context.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/catalog.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/pool_type.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/main.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/highlighter.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/helper.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/print_options.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/object_storage/instrumented.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/object_storage/instrumented.rs581 }COMMENT
LOWdatafusion-cli/src/object_storage/stdin.rs1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWdatafusion-cli/src/object_storage/stdin.rs41/// [`SessionConfig`]: datafusion::execution::context::SessionConfigCOMMENT
LOWdatafusion-cli/src/object_storage/stdin.rs61/// Utilities for exposing the process's standard input as an object store.COMMENT
LOWdatafusion-cli/src/object_storage/stdin.rs101COMMENT
LOWdatafusion-cli/src/object_storage/stdin.rs261 .await?;COMMENT
LOWci/scripts/release_version_labeler.js1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWci/scripts/check_generated_docs.sh1#!/usr/bin/env bashCOMMENT
LOWci/scripts/rust_fmt.sh1#!/usr/bin/env bashCOMMENT
LOWci/scripts/check_asf_yaml_status_checks.py1#!/usr/bin/env python3COMMENT
LOWci/scripts/check_circular_dependencies.sh1#!/usr/bin/env bashCOMMENT
LOWci/scripts/typos_check.sh1#!/usr/bin/env bashCOMMENT
LOWci/scripts/check_large_files.sh1#!/usr/bin/env bashCOMMENT
4985 more matches not shown…
Decorative Section Separators942 hits · 3580 pts
SeverityFileLineSnippetContext
MEDIUMCargo.toml336# --------------------COMMENT
MEDIUMCargo.toml338# --------------------COMMENT
MEDIUMci/scripts/changed_crates.sh34# ── changed-crates ──────────────────────────────────────────────────COMMENT
MEDIUMci/scripts/changed_crates.sh62# ── semver-check ────────────────────────────────────────────────────COMMENT
MEDIUMci/scripts/changed_crates.sh75# ── main ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs81/// ┌─────────────────────┐ -----► execute pathCOMMENT
MEDIUM⚡datafusion/datasource/src/source.rs82/// │ │ ┄┄┄┄┄► init pathCOMMENT
MEDIUM⚡datafusion/datasource/src/source.rs85/// └───────▲─────────────┘COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs88/// ┌──────────▼──────────┐ ┌──────────-──────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs92/// └───────▲─────────────┘ └─────────────────────┘COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs94/// ┌───────────────┿──┴────────────────┐ ┊COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs95/// | ┌┄┄┄┄┄┄┄┄┄┄┄┘ | ┊COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs97/// ┌──────────▼──────────┐ ┌──────────▼──────────┐ ┊COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs98/// │ │ │ │ ┌──────────▼──────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs101/// └──────────────▲──────┘ └─────────────────────┘ | |COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs102/// │ ┊ └─────────────────────┘COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs105/// ┌──────────▼──────────┐ ┌──────────▼──────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs107/// │ FileSource(trait) ◄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄│ ... │COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs109/// └─────────────────────┘ └─────────────────────┘COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs114/// ┌──────────▼──────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs118/// └─────────────────────┘COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs122/// ┌──────────▼──────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/source.rs126/// └─────────────────────┘COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs48/// ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs53/// │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs55/// ┌─────────────────┐ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs56/// │ │ ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs61/// │ │ │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs62/// │ File A (7MB) │ ────────▶ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs64/// │ │ ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs69/// │ │ │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs70/// └─────────────────┘ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs71/// ┌─────────────────┐ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs72/// │ File B (1MB) │ ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs74/// └─────────────────┘ │ Range: 6-7MB │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs75/// │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs76/// ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs79/// │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs97/// ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs102/// ┌─────────────────┐ │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs105/// │ │ ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs109/// │ File A (6MB) │ ────────▶ │ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs110/// │ (ordered) │ │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs113/// │ │ ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs117/// └─────────────────┘ │ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs118/// ┌─────────────────┐ │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs121/// └─────────────────┘ ┌─────────────────┐COMMENT
MEDIUM⚡datafusion/datasource/src/file_groups.rs124/// │ └─────────────────┘ │COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs91/// ┌───────────┐ ┌──────────COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs92/// ┌──────▶ │ batch 1 ├────▶...──────▶│ Batch aCOMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs93/// │ └───────────┘ └──────────COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs95/// ┌──────────┐ │ ┌───────────┐ ┌──────────COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs96/// ┌───────────┐ ┌────────────┐ │ │ ├──────▶ │ batch a+1├────▶...──────▶│ Batch bCOMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs97/// │ batch 1 ├────▶...──────▶│ Batch N ├─────▶│ Demux ├────────┤ ... └───────────┘ └──────────COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs98/// └───────────┘ └────────────┘ │ │ │COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs99/// └──────────┘ │ ┌───────────┐ ┌──────────COMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs100/// └──────▶ │ batch d ├────▶...──────▶│ Batch nCOMMENT
MEDIUM⚡datafusion/datasource/src/write/demux.rs101/// └───────────┘ └──────────COMMENT
MEDIUM…usion/datasource/src/file_scan_config/sort_pushdown.rs57 /// ┌─────────────────────────────────────────────────────────────┐COMMENT
MEDIUM…usion/datasource/src/file_scan_config/sort_pushdown.rs65 /// └─────────────────────────────────────────────────────────────┘COMMENT
882 more matches not shown…
Structural Annotation Overuse85 hits · 142 pts
SeverityFileLineSnippetContext
LOWdatafusion/physical-plan/src/aggregates/spill.rs67 /// Step 1: OOM round 1COMMENT
LOW⚡datafusion/physical-plan/src/aggregates/spill.rs79 /// Step 2: OOM round 2COMMENT
LOW⚡datafusion/physical-plan/src/aggregates/spill.rs89 /// Step 3: Global sort and final aggregationCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs397 // Step 1: Aggregate the input batchCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs404 // Step 2: Soft limit optimizationCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs411 // Step 3: Skip partial aggregation optimizationCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs421 // Step 4: Larger-than-memory execution (early emit)COMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8927 // Step 1: Partial aggregation on partition 1COMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8939 // Step 2: Partial aggregation on partition 2COMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8961 // Step 3: PartialReduce — combine partial results, still producing stateCOMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8988 // Step 4: Final aggregation on the PartialReduce outputCOMMENT
LOW…usion/physical-plan/src/aggregates/aggregate_stream.rs171 // Step 1: Update each partition's current boundCOMMENT
LOW…usion/physical-plan/src/aggregates/aggregate_stream.rs208 // Step 2: Sync the dynamic filter physical expression with reader,COMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1612 // Step 1: Create a test batch and measure its sizeCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1616 // Step 2: Configure file rotation to approximately 1 batch per fileCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1640 // Step 4: Verify initial disk usage reflects all filesCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1647 // Step 5: Read NUM_BATCHES - 1 batches (all but 1)COMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1673 // Step 7: Read the final batchCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1677 // Step 8: Drop writer first to signal no more data will be writtenCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1688 // Step 9: Drop reader to release all referencesCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1691 // Step 10: Verify complete cleanup - disk usage should be 0COMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs600 // Step 1: Lock shared state and check coordinationCOMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs624 // Step 2: Lazy-create reader stream if neededCOMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs649 // Step 3: Poll the reader stream (no lock held)COMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs1627 // Step 3: Write NUM_BATCHES batches to create approximately NUM_BATCHES filesCOMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs1661 // Step 6: Verify disk usage decreased but is not zero (at least 1 batch remains)COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs474 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs508 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs542 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs553 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs564 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs769 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs1405/// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs2187 /// NOTE: This function only works with intervals of the same data type.COMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs675 // Step 1: Count entries per group. For EmitTo::First(n), only groupsCOMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs687 // Step 2: Do a prefix sum over the counts and use it to build ListArrayCOMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs706 // Step 3: Scatter entries into group order using the counting sort. TheCOMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs728 // Step 4: Release state for emitted groups.COMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs142 // Step 1: Match FilterExec at the topCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs150 // Step 2: Extract limit from predicate (rn <= K, rn < K, etc.)COMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs162 // Step 3: Walk through optional ProjectionExec and RepartitionExec to find BoundedWindowAggExecCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs166 // Step 4: Verify col_idx references a supported window function output columnCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs201 // Step 5: Validate PARTITION BY / ORDER BY and collect sort keys from the window exprCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs211 // Step 6: Build PartitionedTopKExec from the window's partition/order keysCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs245 // Step 7: Rebuild window with PartitionedTopKExec as its childCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs250 // Step 8: Rebuild intermediate nodes (ProjectionExec/RepartitionExec)COMMENT
LOW…physical-optimizer/src/limited_distinct_aggregation.rs98 // Step 1: Identify the plan shape,COMMENT
LOW…physical-optimizer/src/limited_distinct_aggregation.rs129 // Step 2: Verify partial/final aggregate is compatible, then apply optimizationCOMMENT
LOWdatafusion/datasource-parquet/src/push_decoder.rs448 // Step 1: drain a batch from the active reader if any.COMMENT
LOWdatafusion/datasource-parquet/src/push_decoder.rs467 // Step 2: when the decoder is sitting on a row-group boundary,COMMENT
LOWdatafusion/datasource-parquet/src/push_decoder.rs511 // Step 3: drive the decoder.COMMENT
LOWdatafusion/spark/src/function/string/concat.rs122 // Step 1: Check for NULL mask in incoming argsCOMMENT
LOWdatafusion/spark/src/function/string/concat.rs133 // Step 2: Delegate to DataFusion's concatCOMMENT
LOWdatafusion/spark/src/function/string/concat.rs145 // Step 3: Apply NULL mask to resultCOMMENT
LOWdatafusion/sql/src/expr/mod.rs403 // NOTE: This function is called recursively, so each match arm body should be asCOMMENT
LOWdocs/source/contributor-guide/inviting.md49### Step 1: Start a Discussion ThreadCOMMENT
LOWdocs/source/contributor-guide/inviting.md75### Step 2: Formal VoteCOMMENT
LOWdocs/source/contributor-guide/inviting.md108### Step 3: Send Invitation to the CandidateCOMMENT
LOWdocs/source/contributor-guide/inviting.md126### Step 4: Announce and Celebrate the New CommitterCOMMENT
LOWdocs/source/contributor-guide/inviting.md289### Step 1: Start a Discussion ThreadCOMMENT
25 more matches not shown…
Verbosity Indicators57 hits · 99 pts
SeverityFileLineSnippetContext
LOWdatafusion/physical-plan/src/aggregates/spill.rs67 /// Step 1: OOM round 1COMMENT
LOW⚡datafusion/physical-plan/src/aggregates/spill.rs79 /// Step 2: OOM round 2COMMENT
LOW⚡datafusion/physical-plan/src/aggregates/spill.rs89 /// Step 3: Global sort and final aggregationCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs397 // Step 1: Aggregate the input batchCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs404 // Step 2: Soft limit optimizationCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs411 // Step 3: Skip partial aggregation optimizationCOMMENT
LOW⚡datafusion/physical-plan/src/aggregates/hash_stream.rs421 // Step 4: Larger-than-memory execution (early emit)COMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8927 // Step 1: Partial aggregation on partition 1COMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8939 // Step 2: Partial aggregation on partition 2COMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8961 // Step 3: PartialReduce — combine partial results, still producing stateCOMMENT
LOWdatafusion/physical-plan/src/aggregates/mod.rs8988 // Step 4: Final aggregation on the PartialReduce outputCOMMENT
LOW…usion/physical-plan/src/aggregates/aggregate_stream.rs171 // Step 1: Update each partition's current boundCOMMENT
LOW…usion/physical-plan/src/aggregates/aggregate_stream.rs208 // Step 2: Sync the dynamic filter physical expression with reader,COMMENT
LOW…plan/src/aggregates/group_values/multi_group_by/mod.rs1146 // In non-streaming case, we need to check if the `group index view`COMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1612 // Step 1: Create a test batch and measure its sizeCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1616 // Step 2: Configure file rotation to approximately 1 batch per fileCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1640 // Step 4: Verify initial disk usage reflects all filesCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1647 // Step 5: Read NUM_BATCHES - 1 batches (all but 1)COMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1673 // Step 7: Read the final batchCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1677 // Step 8: Drop writer first to signal no more data will be writtenCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1688 // Step 9: Drop reader to release all referencesCOMMENT
LOW⚡datafusion/physical-plan/src/spill/spill_pool.rs1691 // Step 10: Verify complete cleanup - disk usage should be 0COMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs600 // Step 1: Lock shared state and check coordinationCOMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs624 // Step 2: Lazy-create reader stream if neededCOMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs649 // Step 3: Poll the reader stream (no lock held)COMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs1627 // Step 3: Write NUM_BATCHES batches to create approximately NUM_BATCHES filesCOMMENT
LOWdatafusion/physical-plan/src/spill/spill_pool.rs1661 // Step 6: Verify disk usage decreased but is not zero (at least 1 batch remains)COMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs675 // Step 1: Count entries per group. For EmitTo::First(n), only groupsCOMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs687 // Step 2: Do a prefix sum over the counts and use it to build ListArrayCOMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs706 // Step 3: Scatter entries into group order using the counting sort. TheCOMMENT
LOWdatafusion/functions-aggregate/src/array_agg.rs728 // Step 4: Release state for emitted groups.COMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs142 // Step 1: Match FilterExec at the topCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs150 // Step 2: Extract limit from predicate (rn <= K, rn < K, etc.)COMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs162 // Step 3: Walk through optional ProjectionExec and RepartitionExec to find BoundedWindowAggExecCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs166 // Step 4: Verify col_idx references a supported window function output columnCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs201 // Step 5: Validate PARTITION BY / ORDER BY and collect sort keys from the window exprCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs211 // Step 6: Build PartitionedTopKExec from the window's partition/order keysCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs245 // Step 7: Rebuild window with PartitionedTopKExec as its childCOMMENT
LOW⚡datafusion/physical-optimizer/src/window_topn.rs250 // Step 8: Rebuild intermediate nodes (ProjectionExec/RepartitionExec)COMMENT
LOW…physical-optimizer/src/limited_distinct_aggregation.rs98 // Step 1: Identify the plan shape,COMMENT
LOW…physical-optimizer/src/limited_distinct_aggregation.rs129 // Step 2: Verify partial/final aggregate is compatible, then apply optimizationCOMMENT
LOWdatafusion/datasource-parquet/src/push_decoder.rs448 // Step 1: drain a batch from the active reader if any.COMMENT
LOWdatafusion/datasource-parquet/src/push_decoder.rs467 // Step 2: when the decoder is sitting on a row-group boundary,COMMENT
LOWdatafusion/datasource-parquet/src/push_decoder.rs511 // Step 3: drive the decoder.COMMENT
LOWdatafusion/spark/src/function/string/concat.rs122 // Step 1: Check for NULL mask in incoming argsCOMMENT
LOWdatafusion/spark/src/function/string/concat.rs133 // Step 2: Delegate to DataFusion's concatCOMMENT
LOWdatafusion/spark/src/function/string/concat.rs145 // Step 3: Apply NULL mask to resultCOMMENT
LOW⚡…s/examples/custom_data_source/adapter_serialization.rs87 // Step 1: Create sample Parquet data in memoryCOMMENT
LOW⚡…s/examples/custom_data_source/adapter_serialization.rs94 // Step 2: Set up session with custom adapterCOMMENT
LOW⚡…s/examples/custom_data_source/adapter_serialization.rs120 // Step 3: Create physical plan with filterCOMMENT
LOW⚡…s/examples/custom_data_source/adapter_serialization.rs129 // Step 4: Serialize with our custom codecCOMMENT
LOW⚡…s/examples/custom_data_source/adapter_serialization.rs140 // Step 5: Deserialize with our custom codecCOMMENT
LOW⚡…s/examples/custom_data_source/adapter_serialization.rs150 // Step 6: Execute and compare resultsCOMMENT
LOWbenchmarks/bench.sh1581 # Step 1: Write a single sorted file with small (100K-row) RGsCOMMENT
LOWbenchmarks/bench.sh1594 # Step 2: Redistribute RGs into 3 files with scrambled RG order.COMMENT
LOWbenchmarks/bench.sh1644 # Step 1: Write a single sorted file with small (100K-row) RGsCOMMENT
LOWbenchmarks/bench.sh1657 # Step 2: Redistribute into 5 files with scrambled RG order.COMMENT
AI Slop Vocabulary22 hits · 64 pts
SeverityFileLineSnippetContext
MEDIUM…afusion/physical-plan/src/joins/symmetric_hash_join.rs124/// Prune build side when the new RecordBatch comes to the probe side. We utilize interval arithmeticCOMMENT
MEDIUMdatafusion/physical-plan/src/joins/stream_join_utils.rs400/// we can utilize sorting information while traversing the filter expressionCOMMENT
MEDIUMdatafusion/physical-plan/src/windows/mod.rs485 // we might be able to leverage this property.COMMENT
MEDIUMdatafusion/physical-plan/src/windows/mod.rs489 // monotonicity, we can utilize it to introduce new orderings.COMMENT
MEDIUMdatafusion/physical-plan/src/windows/mod.rs515 // utilize set-monotonicity since the set shrinks as the frameCOMMENT
MEDIUMdatafusion/physical-plan/src/sorts/partitioned_topk.rs185/// cases, the sort-based plan is more robust. Therefore, this optimizationCOMMENT
MEDIUMdatafusion/physical-expr-common/src/physical_expr.rs270 /// Expressions (should) implement this function and utilize the independenceCOMMENT
MEDIUMdatafusion/core/tests/parquet/page_pruning.rs1311 // to be robust against future changes in defaults as requested by reviewers.COMMENT
MEDIUMdatafusion/core/src/lib.rs560//! If your system does not fully utilize either the CPU or network bandwidthCOMMENT
MEDIUMdatafusion/expr/src/udwf.rs233/// implemented directly. Instead, implement [`Eq`] and [`Hash`] and leverage theCOMMENT
MEDIUMdatafusion/expr/src/type_coercion/functions.rs828 // f64 is chosen since most of the math functions utilize Signature::numeric,COMMENT
MEDIUMdatafusion/common/src/config.rs1656 /// repartitioning to increase parallelism to leverage more CPU coresCOMMENT
MEDIUMdatafusion/physical-optimizer/src/join_selection.rs19//! accommodate infinite sources and utilize statistical information (if thereCOMMENT
MEDIUM…imizer/src/ensure_requirements/enforce_distribution.rs944 /// i.e. the operator can actually utilize parallelism.COMMENT
MEDIUMdatafusion/ffi/src/tests/utils.rs54/// actual output directory and is robust to the active profile and a customCOMMENT
MEDIUMdatafusion/functions/src/regex/regexpreplace.rs609 // leverage it in order to determine whether the scalarityCOMMENT
MEDIUMdatafusion/sql/src/planner.rs244/// Struct to store the states used by the Planner. The Planner will leverage the statesCOMMENT
MEDIUMdatafusion-examples/examples/query_planning/expr_api.rs362/// This function shows how to think about and leverage the analysis APICOMMENT
MEDIUMdatafusion-examples/examples/dataframe/cache_factory.rs45/// This example demonstrates how to leverage [CacheFactory] to implement custom caching strategies for dataframes in DaCOMMENT
MEDIUM…xamples/examples/builtin_functions/function_factory.rs37/// This example shows how to utilize [FunctionFactory] to implement simpleCOMMENT
MEDIUMbenchmarks/bench.sh823# Path of the results JSON the Criterion SQL harness ($SQL_CARGO_COMMAND)COMMENT
MEDIUMbenchmarks/bench.sh948# its native DATAFUSION_* config before invoking bench.sh -- the harness readsCOMMENT
Redundant / Tautological Comments24 hits · 38 pts
SeverityFileLineSnippetContext
LOWci/scripts/check_asf_yaml_status_checks.py122 # Check if pull_request trigger has path filtersCOMMENT
LOWci/scripts/check_asf_yaml_status_checks.py250 # Check if ALL workflows providing this job have path filtersCOMMENT
LOWdatafusion/optimizer/src/common_subexpr_eliminate.rs446 /// # Return valueCOMMENT
LOWdatafusion/expr/src/udwf.rs407 /// # Return valueCOMMENT
LOWdatafusion/expr/src/udaf.rs847 /// # Return valueCOMMENT
LOWdatafusion/expr/src/higher_order_function.rs740 /// # Return valueCOMMENT
LOWdatafusion/expr/src/higher_order_function.rs868 /// # Return valueCOMMENT
LOWdatafusion/expr/src/udf.rs1020 /// # Return valueCOMMENT
LOWdatafusion/expr/src/utils.rs1462/// # Return valueCOMMENT
LOWdatafusion/expr/src/utils.rs1489/// # Return valueCOMMENT
LOWdatafusion/expr/src/logical_plan/plan.rs643 /// # Return valueCOMMENT
LOWbenchmarks/bench.sh807 # Check if `web_site.parquet` exists in the TPCDS data directory to verify data presenceCOMMENT
LOWbenchmarks/bench.sh1070 # Check if TPCDS data directory and representative file existsCOMMENT
LOWbenchmarks/bench.sh1233 # Check if required files existCOMMENT
LOWbenchmarks/queries/clickbench/update_queries.sh47# Check if download was successfulCOMMENT
LOWbenchmarks/queries/clickbench/update_queries.sh61# Read the file line by line and create individual query filesCOMMENT
LOWbenchmarks/queries/clickbench/update_queries.sh74 # Increment counterCOMMENT
LOWdev/release/add-branch-protection.sh40# Check if release number is providedCOMMENT
LOWdev/release/add-branch-protection.sh60# Check if .asf.yaml existsCOMMENT
LOWdev/release/add-branch-protection.sh67# Check if the branch exists in the official Apache DataFusion repositoryCOMMENT
LOW⚡dev/release/add-branch-protection.sh80# Check if branch protection already exists for this releaseCOMMENT
LOW⚡dev/release/add-branch-protection.sh89# Read the file and insert the new branch protection blockCOMMENT
LOWdev/release/add-branch-protection.sh115 # Check if this belongs to the last branch block by looking aheadCOMMENT
LOWdev/release/add-branch-protection.sh137# Check if awk succeededCOMMENT
Self-Referential Comments8 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMpre-commit.sh20# This file is git pre-commit hook.COMMENT
MEDIUMci/scripts/utils/tool_versions.sh20# This file defines centralized tool versions used by CI and development scripts.COMMENT
MEDIUM⚡datafusion/expr/src/logical_plan/plan.rs99/// ## Creating a LogicalPlan from SQL:COMMENT
MEDIUM⚡datafusion/expr/src/logical_plan/plan.rs103/// ## Creating a LogicalPlan from the DataFrame API:COMMENT
MEDIUM⚡datafusion/expr/src/logical_plan/plan.rs107/// ## Creating a LogicalPlan programmatically:COMMENT
MEDIUMdocs/scripts/update_committer_list.py163 # Create a map of existing committers by apache idCOMMENT
MEDIUMbenchmarks/bench.sh67# Create the datasets for all benchmarks in $DATA_DIRCOMMENT
MEDIUM⚡dev/release/add-branch-protection.sh86# Create a temporary fileCOMMENT
Excessive Try-Catch Wrapping11 hits · 18 pts
SeverityFileLineSnippetContext
LOWdocs/scripts/update_committer_list.py61 except Exception as e:CODE
MEDIUMdocs/scripts/update_committer_list.py62 print(f"Error fetching ASF roster: {e}")CODE
LOWdocs/scripts/update_committer_list.py88 except Exception as e:CODE
MEDIUMdocs/scripts/update_committer_list.py89 print(f"Error fetching ASF people: {e}")CODE
MEDIUMdocs/scripts/update_committer_list.py151 print(f"Error: File {file_path} not found")CODE
MEDIUMdocs/scripts/update_committer_list.py217 print("Error: Could not find table markers in file")CODE
LOWdocs/scripts/update_committer_list.py235 except Exception as e:CODE
MEDIUMdocs/scripts/update_committer_list.py236 print(f"Error writing file: {e}")CODE
MEDIUMdocs/scripts/update_committer_list.py251 print(f"Error: Governance file not found at {governance_file}")CODE
LOW.ai/skills/audit-datafusion-spark-expression/SKILL.md631 except Exception as exc: # noqa: BLE001 - any failure is a result hereCODE
MEDIUM.ai/skills/audit-datafusion-spark-expression/SKILL.md628def run_query(spark, sql):CODE
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdatafusion/core/tests/parquet/page_pruning.rs1311 // to be robust against future changes in defaults as requested by reviewers.COMMENT
HIGHdatafusion/common/src/scalar/consts.rs84 // This code was generated by codex and frankly I don't know how it works,COMMENT
Slop Phrases4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…ples/examples/custom_data_source/custom_file_format.rs94/// for demonstration purposes.COMMENT
MEDIUM…ples/examples/custom_data_source/custom_file_format.rs175/// for demonstration purposes.COMMENT
MEDIUMdatafusion-examples/examples/udf/advanced_udf.rs110 // For demonstration purposes we also implement the scalar / scalarCOMMENT
MEDIUMdatafusion-examples/examples/udf/advanced_udf.rs237 // we will return an error for demonstration purposesCOMMENT
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWci/scripts/check_asf_yaml_status_checks.py158def check_post_merge_conditions(workflow):CODE
LOWdocs/rustdoc_trim.py25def remove_hashtag_lines_in_rust_blocks(markdown_content):CODE
LOWdev/update_arrow_deps.py57def update_commit_dependencies(dependencies, new_sha):CODE
LOWdev/update_arrow_deps.py81def update_version_cargo_toml(cargo_toml, new_version):CODE
LOWdev/update_datafusion_versions.py78def update_datafusion_version(cargo_toml: str, new_version: str):CODE
LOWdev/update_datafusion_versions.py91def update_downstream_versions(cargo_toml: str, new_version: str):CODE
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/scripts/update_committer_list.py24CODE
LOWdocs/scripts/update_committer_list.py28CODE
LOWdocs/scripts/update_committer_list.py28CODE
LOWbenchmarks/compile_profile.py29CODE
LOWbenchmarks/compare.py19CODE
LOWbenchmarks/lineprotocol.py78CODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMbenchmarks/bench.sh21# etc and orchestrates gathering data and run the benchmark binary inCOMMENT
MEDIUMbenchmarks/queries/clickbench/update_queries.sh21# etc and orchestrates gathering data and run the benchmark binary inCOMMENT
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdatafusion/catalog-listing/src/helpers.rs601 "John Doe",CODE
LOWdatafusion/catalog-listing/src/helpers.rs875 evaluate_partition_prefix(partitions, &[col("a").eq(lit("John Doe"))]),CODE
LOWdatafusion/catalog-listing/src/helpers.rs882 &[col("a").eq(lit("foo")).and(col("b").eq(lit("John Doe")))],CODE
LOWbenchmarks/src/sql_benchmark_suite.rs644 "placeholder",CODE
LOWdev/release/README.md68(gpg --list-sigs "John Doe" && gpg --armor --export "John Doe") >> KEYSCODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWdatafusion/physical-expr/src/async_scalar_function.rs216 // TODO: implement this for scalar value inputCOMMENT
LOWdatafusion/expr-common/src/signature.rs1130 // TODO: implement for nested typesCOMMENT
LOWdatafusion/expr-common/src/interval_arithmetic.rs4465 // TODO: Add tests for non-exponential boundary aligned intervals too.COMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWdatafusion/expr-common/src/interval_arithmetic.rs1387/// Example usage:COMMENT
LOWdatafusion/common/src/metadata.rs212 /// # Example usageCOMMENT
LOWdev/release/add-branch-protection.sh27# Usage:COMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWdocs/scripts/update_committer_list.py96CODE
LOWdev/update_arrow_deps.py81CODE
LOWdev/release/download-python-wheels.py35CODE
LOWdev/release/generate-changelog.py36CODE