Repository Analysis

duckdb/duckdb

DuckDB is an analytical in-process SQL database management system

3.0 Likely human-written View on GitHub
3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
38,511
Stars
C++
Language
1,517,685
Lines of Code
6150
Files
4373
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 11HIGH 14MEDIUM 125LOW 4223

Pattern Findings

4373 matches across 17 categories. Click a row to expand file-level details.

Over-Commented Block3676 hits · 3478 pts
SeverityFileLineSnippet
LOWbenchmark/interpreted_benchmark.cpp1#include "interpreted_benchmark.hpp"
LOWbenchmark/benchmark_runner.cpp1#include "benchmark_runner.hpp"
LOWbenchmark/include/duckdb_benchmark.hpp1//===----------------------------------------------------------------------===//
LOWbenchmark/include/benchmark_runner.hpp1//===----------------------------------------------------------------------===//
LOWbenchmark/include/interpreted_benchmark.hpp1//===----------------------------------------------------------------------===//
LOWbenchmark/include/benchmark_configuration.hpp1//===----------------------------------------------------------------------===//
LOWbenchmark/include/benchmark.hpp1//===----------------------------------------------------------------------===//
LOWbenchmark/include/duckdb_benchmark_macro.hpp1//===----------------------------------------------------------------------===//
LOWbenchmark/aoc24/queries/day25.sql21.#..#
LOWbenchmark/aoc24/queries/day25.sql41
LOWbenchmark/aoc24/queries/day25.sql101.##.#
LOWbenchmark/aoc24/queries/day25.sql121
LOWbenchmark/aoc24/queries/day25.sql161
LOWbenchmark/aoc24/queries/day25.sql221#.#..
LOWbenchmark/aoc24/queries/day25.sql281
LOWbenchmark/aoc24/queries/day25.sql301.#.#.
LOWbenchmark/aoc24/queries/day25.sql341#..##
LOWbenchmark/aoc24/queries/day25.sql361
LOWbenchmark/aoc24/queries/day25.sql381#...#
LOWbenchmark/aoc24/queries/day25.sql681
LOWbenchmark/aoc24/queries/day25.sql701#.#.#
LOWbenchmark/aoc24/queries/day25.sql741...#.
LOWbenchmark/aoc24/queries/day25.sql781#.#.#
LOWbenchmark/aoc24/queries/day25.sql841
LOWbenchmark/aoc24/queries/day25.sql901#####
LOWbenchmark/aoc24/queries/day25.sql921
LOWbenchmark/aoc24/queries/day25.sql1001
LOWbenchmark/aoc24/queries/day25.sql1121
LOWbenchmark/aoc24/queries/day25.sql1141##..#
LOWbenchmark/aoc24/queries/day25.sql1181.#.##
LOWbenchmark/aoc24/queries/day25.sql1221#.#.#
LOWbenchmark/aoc24/queries/day25.sql1301#.#.#
LOWbenchmark/aoc24/queries/day25.sql1321
LOWbenchmark/aoc24/queries/day25.sql1381#.#..
LOWbenchmark/aoc24/queries/day25.sql1421#.###
LOWbenchmark/aoc24/queries/day25.sql1501#####
LOWbenchmark/aoc24/queries/day25.sql1661#.#.#
LOWbenchmark/aoc24/queries/day25.sql1701#.#..
LOWbenchmark/aoc24/queries/day25.sql1741...#.
LOWbenchmark/aoc24/queries/day25.sql1781.#.#.
LOWbenchmark/aoc24/queries/day25.sql1841
LOWbenchmark/aoc24/queries/day25.sql2061#.#..
LOWbenchmark/aoc24/queries/day25.sql2081
LOWbenchmark/aoc24/queries/day25.sql2101##.#.
LOWbenchmark/aoc24/queries/day25.sql2161
LOWbenchmark/aoc24/queries/day25.sql2181.##..
LOWbenchmark/aoc24/queries/day25.sql2221.#.##
LOWbenchmark/aoc24/queries/day25.sql2361
LOWbenchmark/aoc24/queries/day25.sql2381####.
LOWbenchmark/aoc24/queries/day25.sql2421..#..
LOWbenchmark/aoc24/queries/day25.sql2561
LOWbenchmark/aoc24/queries/day25.sql2581.#.#.
LOWbenchmark/aoc24/queries/day25.sql2641
LOWbenchmark/aoc24/queries/day25.sql2681
LOWbenchmark/aoc24/queries/day25.sql2741###.#
LOWbenchmark/aoc24/queries/day25.sql3041
LOWbenchmark/aoc24/queries/day25.sql3101####.
LOWbenchmark/aoc24/queries/day25.sql3121
LOWbenchmark/aoc24/queries/day25.sql3361
LOWbenchmark/aoc24/queries/day25.sql3401
3616 more matches not shown…
Hyper-Verbose Identifiers248 hits · 215 pts
SeverityFileLineSnippet
LOWtools/shell/tests/test_autocomplete.py161def test_autocomplete_funky_column(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py170def test_autocomplete_semicolon(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py178def test_autocomplete_comments(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py188def test_autocomplete_scalar_functions(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py196def test_autocomplete_aggregates(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py204def test_autocomplete_builtin_views(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py212def test_autocomplete_table_function(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py280def test_autocomplete_disambiguation_column(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py289def test_autocomplete_disambiguation_table(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py298def test_autocomplete_directory(shell, autocomplete_extension, tmp_path):
LOWtools/shell/tests/test_autocomplete.py20def test_autocomplete_first_from(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py64def test_autocomplete_into_table(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py91def test_autocomplete_delete_from(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py100def test_autocomplete_from_table(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py118def test_autocomplete_update_table(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py135def test_autocomplete_update_column(shell, autocomplete_extension):
LOWtools/shell/tests/test_autocomplete.py144def test_autocomplete_funky_table(shell, autocomplete_extension):
LOWtools/shell/tests/test_highlighting.py13def test_highlight_column_header(shell):
LOWtools/shell/tests/test_highlighting.py35def test_custom_highlight_error(shell):
LOWtools/shell/tests/conftest.py19def pytest_collection_modifyitems(config, items):
LOWtools/shell/tests/test_shell_rendering.py103def test_mode_json_empty_result(shell):
LOWtools/shell/tests/test_shell_rendering.py125def test_long_type_empty_result(shell):
LOWtools/shell/tests/test_logging.py22def test_logging_custom_delim(shell):
LOWtools/shell/tests/test_pager.py6def test_pager_status_default(shell):
LOWtools/shell/tests/test_pager.py36def test_pager_on_with_pager_env(shell):
LOWtools/shell/tests/test_pager.py48def test_pager_on_with_duckdb_pager_env(shell):
LOWtools/shell/tests/test_pager.py61def test_pager_duckdb_pager_priority(shell):
LOWtools/shell/tests/test_pager.py73def test_pager_custom_command(shell):
LOWtools/shell/tests/test_pager.py84def test_pager_custom_command_with_args(shell):
LOWtools/shell/tests/test_pager.py94def test_pager_with_query_output(shell):
LOWtools/shell/tests/test_pager.py105def test_pager_doesnt_affect_error_messages(shell):
LOWtools/shell/tests/test_pager.py117def test_pager_preserves_nullvalue(shell):
LOWtools/shell/tests/test_pager.py128def test_pager_multiple_queries(shell):
LOWtools/shell/tests/test_safe_mode.py22def test_safe_mode_dot_command(shell, param):
LOWtools/shell/tests/test_safe_mode.py33def test_safe_mode_database_basic(shell, random_filepath):
LOWtools/shell/tests/test_safe_mode.py45def test_safe_mode_database_commands(shell, random_filepath, command, persistent):
LOWtools/shell/tests/test_prompt.py10def test_prompt_unterminated_bracket(shell):
LOWtools/shell/tests/test_prompt.py18def test_prompt_unterminated_escape(shell):
LOWtools/shell/tests/test_prompt.py26def test_prompt_invalid_option(shell):
LOWtools/shell/tests/test_prompt.py34def test_prompt_missing_query(shell):
LOWtools/shell/tests/test_prompt.py42def test_prompt_invalid_color(shell):
LOWtools/shell/tests/test_errors.py69def test_single_quotes_in_error(shell):
LOWtools/shell/tests/test_errors.py80def test_double_quotes_in_error(shell):
LOWtools/shell/tests/test_warning.py82def test_changing_logging_settings(shell, tmp_path):
LOWtools/shell/tests/test_readable_numbers.py23def test_readable_numbers_exhaustive(shell, test_rounding):
LOWtools/shell/tests/test_readable_numbers.py45def test_readable_numbers_rounding(shell):
LOWtools/shell/tests/test_readable_numbers.py58def test_readable_rounding_edge_case(shell):
LOWtools/shell/tests/test_readable_numbers.py68def test_readable_numbers_limit(shell):
LOWtools/shell/tests/test_readable_numbers.py98def test_disable_readable_numbers(shell):
LOWtools/shell/tests/test_readable_numbers.py107def test_large_number_rendering_all(shell):
LOWtools/shell/tests/test_readable_numbers.py117def test_readable_numbers_columns(shell):
LOWtools/shell/tests/test_readable_numbers.py126def test_readable_numbers_row_count(shell):
LOWtools/shell/tests/test_readable_numbers.py135def test_readable_numbers_row_count_wide(shell):
LOWtools/shell/tests/test_readable_numbers.py144def test_readable_numbers_row_count_wide_single_col(shell):
LOWtools/shell/tests/test_command_line_arguments.py38def test_storage_version_latest(shell):
LOWtools/shell/tests/test_command_line_arguments.py80def test_storage_version_error(shell):
LOWtools/shell/tests/test_schema_metadata_rendering.py34def test_detaching_default_db(shell):
LOWtools/shell/tests/test_duckbox_streaming.py21def test_analyze_streaming_wrap(shell):
LOWtools/shell/tests/test_read_from_stdin.py50 def test_read_stdin_csv_where_filename(self, shell):
LOWtools/shell/tests/test_read_from_stdin.py109 def test_read_stdin_csv_auto_projection(self, shell):
188 more matches not shown…
Decorative Section Separators67 hits · 178 pts
SeverityFileLineSnippet
MEDIUMtools/shell/tests/test_format.py59# ---------------------------------------------------------------------------
MEDIUMtools/shell/tests/test_format.py61# ---------------------------------------------------------------------------
MEDIUMscripts/sync_out_of_tree_extensions.py300 # ── Fresh clone ──────────────────────────────────────────────────────
MEDIUMscripts/sync_out_of_tree_extensions.py314 # ── Skip patches: leave the existing repo untouched ──────────────────
MEDIUMscripts/sync_out_of_tree_extensions.py317 # ── Existing repo ────────────────────────────────────────────────────
MEDIUMscripts/generate_util.py66# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py68# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py461# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py463# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py729# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py731# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py30# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py32# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py245# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py247# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py343# ---------------------------------------------------------------------------
MEDIUMscripts/generate_util.py345# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml27# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml29# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml510# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml512# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml618# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml620# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml805# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml807# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml952# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml954# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml1033# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml1036# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml1151# ---------------------------------------------------------------------------
MEDIUMscripts/parser/grammar_types.yml1153# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py252# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py254# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py370# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py768# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py770# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py13# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py15# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py186# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py192# ---------------------------------------------------------------------------
MEDIUMscripts/parser/gen_transformer_v2.py387# ---------------------------------------------------------------------------
MEDIUMsrc/parser/peg/sql_formatter.cpp20// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp22// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp82// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp84// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp112// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp114// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp181// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp183// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp301// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp303// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp340// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp342// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp747// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp749// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp807// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp809// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp915// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp917// ─────────────────────────────────────────────────────────────────────────────
MEDIUMsrc/parser/peg/sql_formatter.cpp1011// ─────────────────────────────────────────────────────────────────────────────
7 more matches not shown…
Unused Imports169 hits · 167 pts
SeverityFileLineSnippet
LOWtools/shell/tests/test_autocomplete.py3
LOWtools/shell/tests/test_autocomplete.py4
LOWtools/shell/tests/test_autocomplete.py5
LOWtools/shell/tests/test_autocomplete.py6
LOWtools/shell/tests/test_autocomplete.py8
LOWtools/shell/tests/test_autocomplete.py9
LOWtools/shell/tests/test_highlighting.py4
LOWtools/shell/tests/test_highlighting.py5
LOWtools/shell/tests/test_highlighting.py6
LOWtools/shell/tests/test_shell_rendering.py4
LOWtools/shell/tests/test_shell_rendering.py5
LOWtools/shell/tests/test_shell_rendering.py6
LOWtools/shell/tests/test_shell_rendering.py8
LOWtools/shell/tests/test_shell_rendering.py9
LOWtools/shell/tests/test_logging.py3
LOWtools/shell/tests/test_logging.py4
LOWtools/shell/tests/test_logging.py5
LOWtools/shell/tests/test_logging.py7
LOWtools/shell/tests/test_pager.py3
LOWtools/shell/tests/test_safe_mode.py4
LOWtools/shell/tests/test_safe_mode.py5
LOWtools/shell/tests/test_safe_mode.py6
LOWtools/shell/tests/test_prompt.py3
LOWtools/shell/tests/test_prompt.py4
LOWtools/shell/tests/test_prompt.py5
LOWtools/shell/tests/test_prompt.py6
LOWtools/shell/tests/test_errors.py4
LOWtools/shell/tests/test_errors.py5
LOWtools/shell/tests/test_errors.py6
LOWtools/shell/tests/test_profiling.py3
LOWtools/shell/tests/test_profiling.py4
LOWtools/shell/tests/test_profiling.py5
LOWtools/shell/tests/test_profiling.py6
LOWtools/shell/tests/test_readable_numbers.py4
LOWtools/shell/tests/test_readable_numbers.py5
LOWtools/shell/tests/test_readable_numbers.py6
LOWtools/shell/tests/test_readable_numbers.py8
LOWtools/shell/tests/test_command_line_arguments.py3
LOWtools/shell/tests/test_command_line_arguments.py4
LOWtools/shell/tests/test_command_line_arguments.py5
LOWtools/shell/tests/test_command_line_arguments.py6
LOWtools/shell/tests/test_command_line_arguments.py8
LOWtools/shell/tests/test_command_line_arguments.py9
LOWtools/shell/tests/test_http_logging.py4
LOWtools/shell/tests/test_http_logging.py5
LOWtools/shell/tests/test_http_logging.py6
LOWtools/shell/tests/test_http_logging.py8
LOWtools/shell/tests/test_duckbox_streaming.py3
LOWtools/shell/tests/test_duckbox_streaming.py4
LOWtools/shell/tests/test_duckbox_streaming.py5
LOWtools/shell/tests/test_duckbox_streaming.py6
LOWtools/shell/tests/test_read_from_stdin.py4
LOWtools/shell/tests/test_read_from_stdin.py5
LOWtools/shell/tests/test_read_from_stdin.py6
LOWtools/shell/tests/test_read_from_stdin.py8
LOWtools/shell/tests/test_import.py3
LOWtools/shell/tests/test_import.py4
LOWtools/shell/tests/test_import.py5
LOWtools/shell/tests/test_import.py6
LOWtools/shell/tests/test_import.py8
109 more matches not shown…
Hallucination Indicators11 hits · 140 pts
SeverityFileLineSnippet
CRITICAL…ion/operator/csv_scanner/sniffer/dialect_detection.cpp309 if (sniffed_column_counts.state_machine.options.dialect_options.skip_rows.IsSetByUser()) {
CRITICAL…ion/operator/csv_scanner/sniffer/dialect_detection.cpp311 sniffed_column_counts.state_machine.options.dialect_options.skip_rows.GetValue();
CRITICAL…ion/operator/csv_scanner/sniffer/dialect_detection.cpp355 sniffed_column_counts.state_machine.dialect_options.state_machine_options.quote.GetValue() != '\0';
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp214 if (result.state_machine.dialect_options.state_machine_options.new_line.GetValue() != NewLineIdentifier::CARRY_ON) {
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp644 value_ptr, length, result.state_machine.dialect_options.state_machine_options.escape.GetValue(),
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp645 result.state_machine.dialect_options.state_machine_options.quote.GetValue(),
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp646 result.state_machine.dialect_options.state_machine_options.strict_mode.GetValue(),
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp1548 result.state_machine.dialect_options.state_machine_options.strict_mode.GetValue(),
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp1580 result.state_machine.dialect_options.state_machine_options.strict_mode.GetValue(),
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp1590 !result.state_machine.dialect_options.state_machine_options.delimiter.GetValue().empty()) {
CRITICAL…/operator/csv_scanner/scanner/string_value_scanner.cpp1592 result.state_machine.dialect_options.state_machine_options.delimiter.GetValue().size() - 1;
Excessive Try-Catch Wrapping57 hits · 99 pts
SeverityFileLineSnippet
LOWtest/bwc/runner.py278 except Exception as e:
LOWtest/bwc/runner.py314 except Exception as e:
MEDIUMtest/bwc/update_cache.py52 print(f"Error: cache directory not found in test-utils: {cache_dir}")
MEDIUMtest/bwc/export_cache.py107 print(f"Error: runtime directory not found: {runtime_dir}")
LOWtest/bwc/utils/test_files_parser.py496 except Exception as e:
LOWtest/bwc/utils/test_files_parser.py675 except Exception as e:
LOWtest/bwc/utils/duckdb_cli.py62 except Exception as e:
LOWtest/bwc/utils/duckdb_cli.py100 except Exception:
LOWtest/bwc/utils/duckdb_cli.py106 except Exception:
LOWtest/bwc/utils/duckdb_cli.py118 except Exception:
MEDIUMtest/bwc/utils/duckdb_cli.py35def start(self):
LOWtest/parquet/generate_parquet_test.py43 except Exception as e:
MEDIUMscripts/generate_storage_info.py90 print(f"Error: {path} not found.")
MEDIUMscripts/generate_storage_info.py112 print(f"Error: Version map not found at {VERSION_MAP_PATH}")
MEDIUMscripts/run-clang-tidy.py69 print('Error: could not find compilation database.')
MEDIUMscripts/run-clang-tidy.py337 print('Error exporting fixes.\n', file=sys.stderr)
MEDIUMscripts/run-clang-tidy.py346 print('Error applying fixes.\n', file=sys.stderr)
MEDIUMscripts/create_patch.py36 print(f"Error: Extension CMake file not found: {cmake_path}")
MEDIUMscripts/create_patch.py44 print(f"Error: Could not find GIT_TAG in {cmake_path}")
MEDIUMscripts/create_patch.py61 print(f"Error: Failed to run git in {args.repository_path} — {e.stderr.strip()}")
MEDIUMscripts/create_patch.py85 print(f"Error: Failed to run git diff — {e.stderr.strip()}")
LOWscripts/format.py34except Exception as e:
LOWscripts/format.py44except Exception as e:
LOWscripts/format.py53except Exception as e:
LOWscripts/generate_serialization.py859 except Exception as e:
MEDIUMscripts/cleanup_config_skip_tests.py166 print(f"Error: Config directory not found: {config_dir}", file=sys.stderr)
MEDIUMscripts/cleanup_config_skip_tests.py184 print(f"Error parsing {config_path}: {e}", file=sys.stderr)
LOWscripts/cleanup_config_skip_tests.py185 except Exception as e:
MEDIUMscripts/cleanup_config_skip_tests.py186 print(f"Error processing {config_path}: {e}", file=sys.stderr)
LOWscripts/run-clangd-tidy.py177 except Exception:
LOWscripts/clang-tidy-diff.py79 except Exception as e:
LOWscripts/asset-upload-gha.py74 except Exception as e:
MEDIUMscripts/format_test_benchmark.py64 print("Error: -i cannot be used with stdin", file=sys.stderr)
MEDIUMscripts/format_test_benchmark.py73 print(f"Error: {file_path} is not a file", file=sys.stderr)
MEDIUMscripts/format_test_benchmark.py102 print("Error: -f/--full-path can only be used with stdin (-)", file=sys.stderr)
MEDIUMscripts/format_test_benchmark.py105 print("Error: -f/--full-path cannot be used with multiple files", file=sys.stderr)
LOWscripts/ci/run_tests.py849 except Exception as exc:
MEDIUMscripts/parser/generate_transformer.py51 print("Error: PyYAML is required. Install with: pip install pyyaml", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py55 print(f"Error: {types_file} not found.", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py62 print(f"Error: {types_file} is malformed (expected a top-level mapping).", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py122 print(f"Error: Grammar directory not found: {grammar_path}", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py127 print(f"Error: No *.gram files found in {grammar_path}", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py138 print(f"Error reading {file_path}: {e}", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py178 print(f"Error reading {file_path}: {e}", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py216 print(f"Error reading {factory_file_path}: {e}", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py103 print(f"Error: {types_file} contains duplicate rule listings:", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py165 print(f"Error: No *.cpp files found in {transformer_path}", file=sys.stderr)
MEDIUMscripts/parser/generate_transformer.py197 print(f"Error: Factory file not found: {factory_file_path}", file=sys.stderr)
LOWscripts/parser/generate_transformer.py137 except Exception as e:
LOWscripts/parser/generate_transformer.py177 except Exception as e:
LOWscripts/parser/generate_transformer.py215 except Exception as e:
MEDIUMscripts/parser/generate_transformer.py299 print("Error: Could not find grammar rules. Exiting.", file=sys.stderr)
MEDIUMscripts/parser/inline_grammar.py303 print(f"Error: rule '{rule_name}' references undefined rule '{ref}'")
LOWscripts/parser/inline_grammar.py350 except Exception as e:
LOWscripts/parser/inline_grammar.py375 except Exception as e:
LOWscripts/parser/gen_transformer_v2.py890 except Exception as e:
LOWscripts/parser/gen_transformer_v2.py1188 except Exception as e:
Cross-Language Confusion13 hits · 68 pts
SeverityFileLineSnippet
HIGHtools/shell/tests/test_shell_rendering.py77 .statement("select 'val || other_val' c;")
HIGHtools/shell/tests/test_large_value_rendering.py60 "value": {"type": {"id": "BLOB", "type_info": null}, "is_null": false, "value": "10"}
HIGHtools/shell/tests/test_large_value_rendering.py63 "from_table": {"type": "EMPTY", "alias": "", "sample": null, "query_location": 18446744073709551615},
HIGHtools/shell/tests/test_large_value_rendering.py64 "where_clause": null,
HIGHtools/shell/tests/test_large_value_rendering.py68 "having": null,
HIGHtools/shell/tests/test_large_value_rendering.py69 "sample": null,
HIGHtools/shell/tests/test_rendering_mode_regression.py1282expected_results[all_types_source]["json"] = '''[{"bool":false,"tinyint":-128,"smallint":-32768,"int":-2147483648,"bigin
HIGHtools/shell/tests/test_rendering_mode_regression.py1283{"bool":true,"tinyint":127,"smallint":32767,"int":2147483647,"bigint":9223372036854775807,"hugeint":"1701411834604692317
HIGHtools/shell/tests/test_rendering_mode_regression.py1284{"bool":null,"tinyint":null,"smallint":null,"int":null,"bigint":null,"hugeint":null,"uhugeint":null,"utinyint":null,"usm
HIGHtools/shell/tests/test_rendering_mode_regression.py1287expected_results[all_types_source]["jsonlines"] = '''{"bool":false,"tinyint":-128,"smallint":-32768,"int":-2147483648,"b
HIGHtools/shell/tests/test_rendering_mode_regression.py1288{"bool":true,"tinyint":127,"smallint":32767,"int":2147483647,"bigint":9223372036854775807,"hugeint":"1701411834604692317
HIGHtools/shell/tests/test_rendering_mode_regression.py1289{"bool":null,"tinyint":null,"smallint":null,"int":null,"bigint":null,"hugeint":null,"uhugeint":null,"utinyint":null,"usm
HIGHscripts/generate_util.py593 # Non-nullable: const accessor returns const ParsedExpression& directly (assume non-null)
Deep Nesting67 hits · 62 pts
SeverityFileLineSnippet
LOWtools/shell/tests/test_rendering_mode_regression.py12
LOWtools/juliapkg/scripts/generate_c_api_julia.py800
LOWtools/juliapkg/scripts/generate_c_api_julia.py694
LOWtools/juliapkg/scripts/generate_c_api_julia.py747
LOWtools/juliapkg/scripts/generate_c_api.py71
LOWtools/juliapkg/scripts/generate_c_api.py117
LOWtest/bwc/runner.py181
LOWtest/bwc/runner.py283
LOWtest/bwc/export_cache.py65
LOWtest/bwc/utils/test_files_parser.py208
LOWtest/bwc/utils/test_files_parser.py420
LOWtest/bwc/utils/duckdb_cli.py143
LOWtest/bwc/utils/duckdb_installer.py85
LOWscripts/amalgamation.py37
LOWscripts/sync_out_of_tree_extensions.py41
LOWscripts/sync_out_of_tree_extensions.py287
LOWscripts/sync_out_of_tree_extensions.py408
LOWscripts/generate_extensions_function.py103
LOWscripts/test_peg_parser.py38
LOWscripts/test_peg_parser.py110
LOWscripts/generate_util.py147
LOWscripts/generate_util.py741
LOWscripts/package_build.py253
LOWscripts/package_build.py438
LOWscripts/run-clang-tidy.py164
LOWscripts/create_patch.py73
LOWscripts/create_patch.py93
LOWscripts/test_benchmark_sql_runner.py42
LOWscripts/generate_serialization.py690
LOWscripts/generate_serialization.py428
LOWscripts/test_zero_initialize.py79
LOWscripts/cleanup_config_skip_tests.py27
LOWscripts/test_serialization_bwc.py26
LOWscripts/test_serialization_bwc.py168
LOWscripts/ccache_workflow_summary.py175
LOWscripts/clang-tidy-diff.py52
LOWscripts/generate_c_api.py172
LOWscripts/generate_c_api.py217
LOWscripts/generate_c_api.py247
LOWscripts/generate_c_api.py266
LOWscripts/generate_c_api.py301
LOWscripts/generate_c_api.py476
LOWscripts/generate_c_api.py557
LOWscripts/generate_c_api.py688
LOWscripts/generate_c_api.py813
LOWscripts/generate_functions.py38
LOWscripts/generate_functions.py123
LOWscripts/ci/run_tests.py208
LOWscripts/ci/run_tests.py403
LOWscripts/ci/run_tests.py666
LOWscripts/ci/run_tests.py898
LOWscripts/ci/test_run_tests.py30
LOWscripts/ci/test_job_stages.py25
LOWscripts/parser/generate_transformer.py42
LOWscripts/parser/generate_transformer.py112
LOWscripts/parser/generate_transformer.py146
LOWscripts/parser/generate_transformer.py278
LOWscripts/parser/inline_grammar.py148
LOWscripts/parser/inline_grammar.py318
LOWscripts/parser/gen_transformer_v2.py90
7 more matches not shown…
AI Slop Vocabulary15 hits · 39 pts
SeverityFileLineSnippet
MEDIUMextension/icu/third_party/icu/common/locmap.cpp1173 // The purpose of this function is to leverage the Windows platform name->lcid
LOWextension/icu/third_party/icu/common/unicode/platform.h62 * Solution: #define any defines for non @internal API here, so that they are visible in the docs. If you just set PRED
MEDIUMextension/icu/third_party/icu/i18n/decNumberLocal.h48 #define DECCHECK 0 /* 1 to enable robust checking */
LOWextension/icu/third_party/icu/i18n/dtptngen.cpp1299 // in #13183 just add b/B to skeleton, no longer need to set special flags
MEDIUMthird_party/httplib/httplib.hpp9131 // Cross-host/scheme redirect - create new client with robust setup
MEDIUMthird_party/httplib/httplib.hpp9136// New method for robust redirect client creation
MEDIUMthird_party/httplib/httplib.hpp9204 // Setup client with robust configuration
MEDIUMthird_party/httplib/httplib.hpp9212// New method for robust client setup (based on basic_manual_redirect.cpp
MEDIUMthird_party/re2/re2/prefilter_tree.h114 // These are all the nodes formed by Compile. Essentially, there is
LOWexamples/python/duckdb-python.py180# or just use df(), a shorthand for fetchdf() on query results
LOWscripts/generate_extensions_function.py137 # Otherwise, just add the character if we're inside braces.
MEDIUM…nclude/duckdb/parser/parsed_data/create_macro_info.hpp29 //! Essentially we used to only support a single function in the CreateMacroInfo
MEDIUMsrc/function/table/direct_file_reader.cpp64 // We utilize projection pushdown here to only read the file content if the 'data' column is requested
MEDIUMsrc/function/table/direct_file_reader.cpp86 // We utilize projection pushdown to avoid potentially expensive fs operations.
MEDIUMsrc/execution/operator/join/physical_iejoin.cpp1853 // We can't leverage any more threads than tasks.
Verbosity Indicators19 hits · 30 pts
SeverityFileLineSnippet
LOW…es/3. Visualizing Data.xcplaygroundpage/Contents.swift31 ## Step 1: Extracting Data
LOW…es/3. Visualizing Data.xcplaygroundpage/Contents.swift120 ## Step 2: Making Charts
LOW…ges/2. Getting Started.xcplaygroundpage/Contents.swift36 ## Step 1: Fetching Data
LOW…ges/2. Getting Started.xcplaygroundpage/Contents.swift79 ## Step 2: Rendering Data
LOWextension/json/json_reader.cpp856 // we need to check if there is data available within our current reader
LOWextension/icu/icu_extension.cpp264 // Step 1: Strip leading zeros
LOWextension/icu/icu_extension.cpp271 // Step 2: Parse hours based on whether colon is present
LOWextension/icu/third_party/icu/common/locmap.cpp1173 // The purpose of this function is to leverage the Windows platform name->lcid
LOWextension/icu/third_party/icu/i18n/dtptngen.cpp685 // We need to check if there is an hour cycle on locale
LOWextension/icu/third_party/icu/i18n/tzgnames.cpp948 // then we need to check if the name is same with the location name.
LOWthird_party/catch/catch.hpp12786 // No children have started. We need to check if they _can_
LOWsrc/function/table/arrow_conversion.cpp1394 //! We need to check if our indexes fit in a uint32_t
LOWsrc/function/table/arrow_conversion.cpp1402 //! We need to check if our indexes fit in a uint32_t
LOWsrc/execution/sample/base_reservoir_sample.cpp31 //! first we need to check if the reservoir already has "m" elements
LOW…ion/operator/csv_scanner/sniffer/dialect_detection.cpp611 // Step 1: Generate state machines
LOW…ion/operator/csv_scanner/sniffer/dialect_detection.cpp613 // Step 2: Analyze all candidates on the first chunk
LOW…ion/operator/csv_scanner/sniffer/dialect_detection.cpp617 // Step 3: Loop over candidates and find if they can still produce good results for the remaining chunks
LOW…/operator/csv_scanner/scanner/string_value_scanner.cpp894 // We need to check if we are getting the correct number of columns here.
LOWsrc/main/database_manager.cpp389 // If we are loading a database type from an extension, then we need to check if that extension is loaded.
Self-Referential Comments10 hits · 24 pts
SeverityFileLineSnippet
MEDIUMtools/shell/tests/test_autocomplete.py304 # Create the files
MEDIUMtools/juliapkg/scripts/generate_c_api_julia.py700 self._analyze_types(function_groups) # Create the julia type map
MEDIUMtest/bwc/runner.py332 # Create the report database
MEDIUMthird_party/mbedtls/mbedtls_wrapper.cpp27# Create a new key
MEDIUMscripts/regression_test_python.py340 # Create the DataFrame with the specified data and column type as object
MEDIUMscripts/generate_c_api.py37# Define the extension struct
MEDIUMscripts/generate_c_api.py765 # Create the versioning defines
MEDIUMscripts/regression/benchmark.py68 # Define the arguments
MEDIUMscripts/regression/benchmark.py86 # Create an instance of BenchmarkRunnerConfig using parsed arguments
MEDIUMscripts/regression/test_runner.py37# Define the arguments
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippet
LOW…/icu/third_party/icu/i18n/double-conversion-bignum.cpp434 // Don't forget to update the used_digits and the exponent.
MEDIUMextension/icu/third_party/icu/i18n/unicode/dtfmtsym.h68 * DateFormatSymbols object, they can feel free to modify the date-time
MEDIUMextension/icu/third_party/icu/i18n/unicode/dtitvinf.h146 * they can feel free to modify it as necessary.
LOWextension/icu/scripts/makedata.sh37# build the data, make sure to create "filters.json" first, see above
LOWthird_party/thrift/thrift/transport/TBufferTransports.h481 // Don't forget to update constrctors, initCommon, and swap if
Redundant / Tautological Comments6 hits · 8 pts
SeverityFileLineSnippet
LOWtools/juliapkg/scripts/generate_c_api_julia.py443 # Check if the argument is (likely) an index
LOWtest/bwc/utils/test_report.py75 # Check if `self.comparison_results_file_name` exists
LOWtest/bwc/utils/duckdb_installer.py20 # Check if the cli already exists
LOWscripts/merge_vcpkg_deps.py88# Print output
LOWscripts/generate_serialization.py813 # Check if is a templated class
LOWscripts/cleanup_config_skip_tests.py44 # Check if this config inherits from another
Dead Code3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMtools/shell/tests/test_read_from_stdin.py200
MEDIUMtools/shell/tests/test_read_from_stdin.py221
MEDIUMtools/shell/tests/test_read_from_stdin.py222
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHCONTRIBUTING.md132Please do not submit pull requests generated by AI (LLMs).
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOWtools/shell/tests/test_large_value_rendering.py11long_string = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do
LOWtools/shell/tests/test_large_value_rendering.py11long_string = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et do
LOWsrc/include/duckdb/function/scalar/string_functions.hpp362 static constexpr const char *Example = "regexp_extract('abcde', '[a-z]{3}')\001regexp_extract('abc', '([a-z])(b)', 1)\0
LOWsrc/function/scalar/string/functions.json362 "example": "regexp_extract('John Doe', '([a-z]+) ([a-z]+)', ['first_name', 'last_name'], 'i')",
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWextension/icu/third_party/icu/common/ucase.cpp1448# Usage:
LOWscripts/generate_extensions_function.py15# Example usage: