The open-source Observability 2.0 database. One engine for metrics, logs, and traces — replacing Prometheus, Loki & ES.
This report presents the forensic synthetic code analysis of GreptimeTeam/greptimedb, a Rust project with 6,468 GitHub stars. SynthScan v2.0 examined 879,673 lines of code across 2861 source files, recording 2865 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 2865 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cliff.toml | 121 | # skip_tags = "" | COMMENT |
| LOW | licenserc.toml | 1 | # Copyright 2023 Greptime Team | COMMENT |
| LOW | licenserc-enterprise.toml | 1 | # License-header config for GreptimeDB Enterprise Edition source files. | COMMENT |
| LOW | config/frontend.example.toml | 1 | ## The default timezone of the server. | COMMENT |
| LOW | config/frontend.example.toml | 21 | ## Maximum total memory for all concurrent write request bodies and messages (HTTP, gRPC, Flight). | COMMENT |
| LOW | config/frontend.example.toml | 41 | addr = "127.0.0.1:4000" | COMMENT |
| LOW | config/frontend.example.toml | 61 | experimental_enable_prometheus_native_histogram = false | COMMENT |
| LOW | config/frontend.example.toml | 81 | flight_compression = "arrow_ipc" | COMMENT |
| LOW | config/frontend.example.toml | 101 | ## Watch for Certificate and key file change and auto reload. | COMMENT |
| LOW | config/frontend.example.toml | 141 | [mysql] | COMMENT |
| LOW | config/frontend.example.toml | 221 | COMMENT | |
| LOW | config/frontend.example.toml | 321 | ## Default to false. | COMMENT |
| LOW | config/frontend.example.toml | 361 | ## The tokio console address. | COMMENT |
| LOW | config/flownode.example.toml | 1 | ## The flownode identifier and should be unique in the cluster. | COMMENT |
| LOW | config/flownode.example.toml | 21 | ## Flow wait for available frontend timeout, | COMMENT |
| LOW | config/flownode.example.toml | 41 | ## Client Certificate file path. | COMMENT |
| LOW | config/flownode.example.toml | 121 | max_log_files = 720 | COMMENT |
| LOW | config/flownode.example.toml | 141 | ## The tokio console address. | COMMENT |
| LOW | config/standalone.example.toml | 1 | ## The default timezone of the server. | COMMENT |
| LOW | config/standalone.example.toml | 21 | ## Maximum total memory for all concurrent write request bodies and messages (HTTP, gRPC, Flight). | COMMENT |
| LOW | config/standalone.example.toml | 41 | ## Enable telemetry to collect anonymous usage data. Enabled by default. | COMMENT |
| LOW | config/standalone.example.toml | 61 | ## HTTP CORS support, it's turned on by default | COMMENT |
| LOW | config/standalone.example.toml | 81 | ## The address to bind the gRPC server. | COMMENT |
| LOW | config/standalone.example.toml | 121 | # MySQL server TLS options. | COMMENT |
| LOW | config/standalone.example.toml | 201 | with_metric_engine = true | COMMENT |
| LOW | config/standalone.example.toml | 221 | ## The directory to store the WAL files. | COMMENT |
| LOW | config/standalone.example.toml | 261 | ## The Kafka broker endpoints. | COMMENT |
| LOW | config/standalone.example.toml | 281 | COMMENT | |
| LOW | config/standalone.example.toml | 301 | ## The max size of a single producer batch. | COMMENT |
| LOW | config/standalone.example.toml | 321 | # The Kafka SASL configuration. | COMMENT |
| LOW | config/standalone.example.toml | 361 | ## The number of flow worker in flownode. | COMMENT |
| LOW | config/standalone.example.toml | 381 | # root = "data" | COMMENT |
| LOW | config/standalone.example.toml | 401 | # scope = "test" | COMMENT |
| LOW | config/standalone.example.toml | 421 | ## The working home directory. | COMMENT |
| LOW | config/standalone.example.toml | 441 | COMMENT | |
| LOW | config/standalone.example.toml | 461 | ## @toml2docs:none-default | COMMENT |
| LOW | config/standalone.example.toml | 481 | ## @toml2docs:none-default | COMMENT |
| LOW | config/standalone.example.toml | 521 | ## To skip the ssl verification | COMMENT |
| LOW | config/standalone.example.toml | 561 | manifest_checkpoint_distance = 10 | COMMENT |
| LOW | config/standalone.example.toml | 581 | ## @toml2docs:none-default="0" | COMMENT |
| LOW | config/standalone.example.toml | 601 | ## If not set, it's default to 1/8 of OS memory with a max limitation of 512MB. | COMMENT |
| LOW | config/standalone.example.toml | 621 | ## If not set, it's default to 1/16 of OS memory with a max limitation of 512MB. | COMMENT |
| LOW | config/standalone.example.toml | 661 | ## Buffer size for SST writing. | COMMENT |
| LOW | config/standalone.example.toml | 681 | COMMENT | |
| LOW | config/standalone.example.toml | 701 | ## The default name for this directory is `index_intermediate` for backward compatibility. | COMMENT |
| LOW | config/standalone.example.toml | 741 | ## Whether to apply the index on query | COMMENT |
| LOW | config/standalone.example.toml | 761 | create_on_flush = "auto" | COMMENT |
| LOW | config/standalone.example.toml | 781 | COMMENT | |
| LOW | config/standalone.example.toml | 841 | ## The OTLP tracing export protocol. Can be `grpc`/`http`. | COMMENT |
| LOW | config/standalone.example.toml | 861 | COMMENT | |
| LOW | config/standalone.example.toml | 881 | [memory] | COMMENT |
| LOW | config/datanode.example.toml | 41 | [grpc] | COMMENT |
| LOW | config/datanode.example.toml | 81 | ## The number of threads to execute the runtime for global read operations. | COMMENT |
| LOW | config/datanode.example.toml | 121 | ## - `kafka`: it's remote wal that data is stored in Kafka. | COMMENT |
| LOW | config/datanode.example.toml | 161 | COMMENT | |
| LOW | config/datanode.example.toml | 181 | COMMENT | |
| LOW | config/datanode.example.toml | 201 | ## as the system will skip over missing entries instead of treating | COMMENT |
| LOW | config/datanode.example.toml | 221 | # client_key_path = "/path/to/key" | COMMENT |
| LOW | config/datanode.example.toml | 241 | # access_key_secret = "123456" | COMMENT |
| LOW | config/datanode.example.toml | 261 | # credential = "base64-credential" | COMMENT |
| 2553 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | src/meta-srv/src/selector/weighted_choose.rs | 57 | /// ─────────────────────────────────▶ | COMMENT |
| MEDIUM⚡ | src/meta-srv/src/selector/weighted_choose.rs | 60 | /// ┌─────────────────┬─────────┬──────────────────────┬─────┬─────────────────┐ | COMMENT |
| MEDIUM⚡ | src/meta-srv/src/selector/weighted_choose.rs | 62 | /// └─────────────────┴─────────┴──────────────────────┴─────┴─────────────────┘ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 29 | //! ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 32 | //! └───────────────┘ └───────────────┘ └───────────────┘ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 35 | //! └───────────────┼───────────────────┘ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 37 | //! ┌─────────┴────────┐ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 40 | //! │ ┌─────────────┤ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 43 | //! └────▲─────────────┘ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 46 | //! ┌─────┴───────────────┐ | COMMENT |
| MEDIUM⚡ | src/metric-engine/src/lib.rs | 50 | //! └─────────────────────┘ | COMMENT |
| MEDIUM | src/store-api/src/storage/descriptors.rs | 45 | /// ┌────────────────────────────────────┬──────────┬──────────────────┐ | COMMENT |
| MEDIUM | src/store-api/src/storage/descriptors.rs | 47 | /// └────────────────────────────────────┴──────────┴──────────────────┘ | COMMENT |
| MEDIUM | src/mito2/src/read/pruner.rs | 970 | // ── Corner case: fast-skip across multiple row groups ───────────── | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 377 | /// ┌──────┐ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 378 | /// ┌─────────────┐ │ PIPE │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 380 | /// │ IndexWriter ├──────────────────►│ tx │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 382 | /// └─────────────┘ │ │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 383 | /// ┌─────────────────┤ rx │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 384 | /// ┌─────────────┐ │ read as blob └──────┘ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 387 | /// │ │ │ copy to file ┌──────┐ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 388 | /// └─────────────┘ └────────────────►│ File │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/inverted_index/creator.rs | 389 | /// └──────┘ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 398 | /// ┌──────┐ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 399 | /// ┌─────────────┐ │ PIPE │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 401 | /// │ IndexWriter ├──────────────────►│ tx │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 403 | /// └─────────────┘ │ │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 404 | /// ┌─────────────────┤ rx │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 405 | /// ┌─────────────┐ │ read as blob └──────┘ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 408 | /// │ │ │ copy to file ┌──────┐ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 409 | /// └─────────────┘ └────────────────►│ File │ | COMMENT |
| MEDIUM⚡ | src/mito2/src/sst/index/bloom_filter/creator.rs | 410 | /// └──────┘ | COMMENT |
| MEDIUM | src/partition/src/multi_dim.rs | 478 | /// ─────────┼──────────┼────────────► b | COMMENT |
| MEDIUM⚡ | src/partition/src/multi_dim.rs | 516 | /// 200 │ ┌─────────┤ | COMMENT |
| MEDIUM⚡ | src/partition/src/multi_dim.rs | 520 | /// 100 │ ======┴─────────┘ | COMMENT |
| MEDIUM⚡ | src/partition/src/multi_dim.rs | 522 | /// └──────────────────────────►b | COMMENT |
| MEDIUM | src/partition/src/multi_dim.rs | 723 | /// ────────────────────────────────┼──► host | COMMENT |
| MEDIUM | src/servers/src/http/result/table_result.rs | 168 | let expected_payload = r#"┌─host────────┬─ts────────────┬─cpu─┬─memory─┐ | CODE |
| MEDIUM⚡ | src/promql/src/range_array.rs | 34 | /// │ ┌─────┬─────┬─────┬─────┐ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 36 | /// Arrays │ └─────┴─────┴─────┴─────┘ (Fixed to i64) | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 38 | /// Arrow's │ ┌────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 40 | /// Array │ └────────────────────────────┘(Any Type) | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 48 | /// ┌───────────────┼───────────────┐ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 50 | /// └───────────────┼───────────────┘ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 57 | /// ┌───────┬───────┬───────┐ ┌───────┐ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 59 | /// └───────┴───────┴───────┘ │ ├───────┤ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 61 | /// ┌───┬───┬───┬───┬───┐ │ ├───────┤ | COMMENT |
| MEDIUM⚡ | src/promql/src/range_array.rs | 63 | /// └───┴───┴───┴───┴───┘ └───────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests-integration/src/tests/gc.rs | 135 | // Step 1: Create table with append_mode to easily generate multiple files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc.rs | 145 | // Step 2: Generate SST files by inserting data and flushing multiple times | COMMENT |
| LOW | tests-integration/src/tests/gc.rs | 171 | // Step 3: Get table information | COMMENT |
| LOW | tests-integration/src/tests/gc.rs | 188 | // Step 4: Trigger compaction to create garbage SST files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc.rs | 203 | // Step 5: Get table route information for GC procedure | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc.rs | 207 | // Step 6: Create and execute BatchGcProcedure | COMMENT |
| LOW | tests-integration/src/tests/gc.rs | 231 | // Step 7: Verify GC results | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 46 | // Step 1: Create table with append_mode to easily generate multiple files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 56 | // Step 2: Generate SST files by inserting data and flushing multiple times | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 102 | // Step 4: Use ADMIN GC_TABLE to clean up garbage files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 107 | // Step 5: Verify GC results | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 166 | // Step 1: Create table with append_mode to easily generate multiple files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 176 | // Step 2: Generate SST files by inserting data and flushing multiple times | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 240 | // Step 5: Use ADMIN GC_REGIONS to clean up garbage files for the specific region | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 245 | // Step 6: Verify GC results | COMMENT |
| LOW | tests-integration/src/tests/gc/admin.rs | 90 | // Step 3: Trigger compaction to create garbage SST files | COMMENT |
| LOW | tests-integration/src/tests/gc/admin.rs | 210 | // Step 3: Trigger compaction to create garbage SST files | COMMENT |
| LOW | tests-integration/src/tests/gc/admin.rs | 222 | // Step 4: Get region id from information_schema | COMMENT |
| LOW | src/meta-srv/src/gc/handler.rs | 294 | // Step 2: Run GC for all regions on this datanode in a single batch | COMMENT |
| LOW | src/meta-srv/src/gc/handler.rs | 393 | // Step 3: Process the combined GC report and update table reports | COMMENT |
| LOW⚡ | src/metric-engine/benches/bench_tsid_generator.rs | 231 | // Step 1: Compute label name hash for non-null labels | COMMENT |
| LOW⚡ | src/metric-engine/benches/bench_tsid_generator.rs | 240 | // Step 2: Use label name hash and hash values | COMMENT |
| LOW⚡ | src/common/meta/src/sequence.rs | 636 | // Step 1: Establish a low value in storage | COMMENT |
| LOW⚡ | src/common/meta/src/sequence.rs | 643 | // Step 2: Create sequence with much larger initial | COMMENT |
| LOW⚡ | src/common/meta/src/sequence.rs | 653 | // Step 3: Verify subsequent sequences continue from updated storage | COMMENT |
| LOW | src/common/meta/src/ddl/utils.rs | 240 | /// For partial success, we need to check if the errors are retryable. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1516 | // Step 2: As a leader, renew the lease. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1525 | // Step 3: Something wrong, the leader lease expired. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1737 | // Step 1: As a follower, the leader exists and the lease is not expired. Do nothing. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1740 | // Step 2: As a follower, the leader exists but the lease expired. Re-elect itself. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1496 | // Step 1: No leader exists, campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1546 | // Step 4: Re-elect itself. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1566 | // Step 5: Something wrong, the leader key is deleted by other followers. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1593 | // Step 6: Re-elect itself. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1613 | // Step 7: Something wrong, the leader key changed by others. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1547 | // Step 1: As a follower, the leader exists and the lease is not expired. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1550 | // Step 2: As a follower, the leader exists but the lease expired. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1554 | // Step 3: As a follower, the leader does not exist. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1561 | // Step 4: Follower thinks it's the leader but failed to acquire the lock. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1250 | // Step 1: No leader exists, campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1283 | // Step 2: As a leader, renew the lease. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1305 | // Step 3: Something wrong, the leader lease expired. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1337 | // Step 4: Re-campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1370 | // Step 5: Something wrong, the leader key is deleted by other followers. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1396 | // Step 6: Re-campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1429 | // Step 7: Something wrong, the leader key changed by others. | COMMENT |
| LOW | src/mito2/src/gc.rs | 701 | // Step 2: Concurrently list all parquet files in the region root directory | COMMENT |
| LOW | src/mito2/src/gc.rs | 1048 | // Step 3: Filter files to determine which ones can be deleted | COMMENT |
| LOW | src/mito2/src/sst/parquet/row_selection.rs | 163 | // Step 1: Convert segment IDs to row ranges within row groups | COMMENT |
| LOW | src/mito2/src/sst/parquet/row_selection.rs | 179 | // Step 2: Group ranges by row group ID and create row selections | COMMENT |
| LOW⚡ | src/mito2/src/sst/parquet/row_selection.rs | 234 | // Step 1: Group row IDs by their row group | COMMENT |
| LOW⚡ | src/mito2/src/sst/parquet/row_selection.rs | 238 | // Step 2: Create row selections for each row group | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests-integration/src/tests/gc.rs | 135 | // Step 1: Create table with append_mode to easily generate multiple files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc.rs | 145 | // Step 2: Generate SST files by inserting data and flushing multiple times | COMMENT |
| LOW | tests-integration/src/tests/gc.rs | 171 | // Step 3: Get table information | COMMENT |
| LOW | tests-integration/src/tests/gc.rs | 188 | // Step 4: Trigger compaction to create garbage SST files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc.rs | 203 | // Step 5: Get table route information for GC procedure | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc.rs | 207 | // Step 6: Create and execute BatchGcProcedure | COMMENT |
| LOW | tests-integration/src/tests/gc.rs | 231 | // Step 7: Verify GC results | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 46 | // Step 1: Create table with append_mode to easily generate multiple files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 56 | // Step 2: Generate SST files by inserting data and flushing multiple times | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 102 | // Step 4: Use ADMIN GC_TABLE to clean up garbage files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 107 | // Step 5: Verify GC results | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 166 | // Step 1: Create table with append_mode to easily generate multiple files | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 176 | // Step 2: Generate SST files by inserting data and flushing multiple times | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 240 | // Step 5: Use ADMIN GC_REGIONS to clean up garbage files for the specific region | COMMENT |
| LOW⚡ | tests-integration/src/tests/gc/admin.rs | 245 | // Step 6: Verify GC results | COMMENT |
| LOW | tests-integration/src/tests/gc/admin.rs | 90 | // Step 3: Trigger compaction to create garbage SST files | COMMENT |
| LOW | tests-integration/src/tests/gc/admin.rs | 210 | // Step 3: Trigger compaction to create garbage SST files | COMMENT |
| LOW | tests-integration/src/tests/gc/admin.rs | 222 | // Step 4: Get region id from information_schema | COMMENT |
| LOW | src/meta-srv/src/gc/handler.rs | 294 | // Step 2: Run GC for all regions on this datanode in a single batch | COMMENT |
| LOW | src/meta-srv/src/gc/handler.rs | 393 | // Step 3: Process the combined GC report and update table reports | COMMENT |
| LOW⚡ | src/metric-engine/benches/bench_tsid_generator.rs | 231 | // Step 1: Compute label name hash for non-null labels | COMMENT |
| LOW⚡ | src/metric-engine/benches/bench_tsid_generator.rs | 240 | // Step 2: Use label name hash and hash values | COMMENT |
| LOW⚡ | src/common/meta/src/sequence.rs | 636 | // Step 1: Establish a low value in storage | COMMENT |
| LOW⚡ | src/common/meta/src/sequence.rs | 643 | // Step 2: Create sequence with much larger initial | COMMENT |
| LOW⚡ | src/common/meta/src/sequence.rs | 653 | // Step 3: Verify subsequent sequences continue from updated storage | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1516 | // Step 2: As a leader, renew the lease. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1525 | // Step 3: Something wrong, the leader lease expired. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1737 | // Step 1: As a follower, the leader exists and the lease is not expired. Do nothing. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/mysql.rs | 1740 | // Step 2: As a follower, the leader exists but the lease expired. Re-elect itself. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1496 | // Step 1: No leader exists, campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1546 | // Step 4: Re-elect itself. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1566 | // Step 5: Something wrong, the leader key is deleted by other followers. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1593 | // Step 6: Re-elect itself. | COMMENT |
| LOW | src/common/meta/src/election/rds/mysql.rs | 1613 | // Step 7: Something wrong, the leader key changed by others. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1547 | // Step 1: As a follower, the leader exists and the lease is not expired. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1550 | // Step 2: As a follower, the leader exists but the lease expired. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1554 | // Step 3: As a follower, the leader does not exist. | COMMENT |
| LOW⚡ | src/common/meta/src/election/rds/postgres.rs | 1561 | // Step 4: Follower thinks it's the leader but failed to acquire the lock. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1250 | // Step 1: No leader exists, campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1283 | // Step 2: As a leader, renew the lease. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1305 | // Step 3: Something wrong, the leader lease expired. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1337 | // Step 4: Re-campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1370 | // Step 5: Something wrong, the leader key is deleted by other followers. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1396 | // Step 6: Re-campaign and elected. | COMMENT |
| LOW | src/common/meta/src/election/rds/postgres.rs | 1429 | // Step 7: Something wrong, the leader key changed by others. | COMMENT |
| LOW | src/mito2/src/gc.rs | 701 | // Step 2: Concurrently list all parquet files in the region root directory | COMMENT |
| LOW | src/mito2/src/gc.rs | 1048 | // Step 3: Filter files to determine which ones can be deleted | COMMENT |
| LOW | src/mito2/src/sst/parquet/row_selection.rs | 163 | // Step 1: Convert segment IDs to row ranges within row groups | COMMENT |
| LOW | src/mito2/src/sst/parquet/row_selection.rs | 179 | // Step 2: Group ranges by row group ID and create row selections | COMMENT |
| LOW⚡ | src/mito2/src/sst/parquet/row_selection.rs | 234 | // Step 1: Group row IDs by their row group | COMMENT |
| LOW⚡ | src/mito2/src/sst/parquet/row_selection.rs | 238 | // Step 2: Create row selections for each row group | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tests/cases/standalone/common/function/matches_term.sql | 165 | (1, '[2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span_id=085ff5t | CODE |
| CRITICAL | src/common/meta/src/ddl/alter_table.rs | 129 | let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap(); | CODE |
| CRITICAL | src/common/meta/src/ddl/alter_table.rs | 271 | let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap(); | CODE |
| CRITICAL | src/common/meta/src/ddl/alter_table.rs | 323 | let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap(); | CODE |
| CRITICAL | src/common/meta/src/ddl/alter_table/region_request.rs | 32 | let alter_kind = self.data.task.alter_table.kind.as_ref().unwrap(); | CODE |
| CRITICAL | src/index/src/fulltext_index/tokenizer.rs | 215 | let text = "[2026/04/09/ 13:56:11.031]2026-04-09 13:56:11.031 - [ trace_id=340a6a44b0bd8e37bb7697ss7da61ff0 span | CODE |
| CRITICAL | src/mito2/src/read/pruner.rs | 100 | let file_index = index.index - self.pruner.inner.stream_ctx.input.num_memtables(); | CODE |
| CRITICAL | src/mito2/src/read/pruner.rs | 177 | .then(|| index.index - self.pruner.inner.stream_ctx.input.num_memtables()) | CODE |
| CRITICAL | src/flow/src/server.rs | 309 | self.flownode_server.inner.flow_service.dual_engine.clone() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/check-git-deps.yml | 40 | # Create a temporary directory for cloning | COMMENT |
| MEDIUM | .github/scripts/deploy-greptimedb.sh | 15 | # Create a cluster with 1 control-plane node and 5 workers. | COMMENT |
| MEDIUM | .github/scripts/update-homebrew-greptme-version.sh | 32 | # Create a Pull Request. | COMMENT |
| MEDIUM | .github/scripts/update-helm-charts-version.sh | 36 | # Create a Pull Request. | COMMENT |
| MEDIUM | .github/scripts/update-dev-builder-version.sh | 27 | # Create a Pull Request. | COMMENT |
| MEDIUM⚡ | src/servers/tests/ssl/gen-certs.sh | 3 | # Create the self-signed CA certificate. | COMMENT |
| MEDIUM⚡ | src/servers/tests/ssl/gen-certs.sh | 11 | # Create the server private key. | COMMENT |
| MEDIUM⚡ | src/servers/tests/ssl/gen-certs.sh | 14 | # Create the server certificate signing request. | COMMENT |
| MEDIUM⚡ | src/servers/tests/ssl/gen-certs.sh | 17 | # Create the server certificate. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …perf/test_query_regression_runner_compaction_toctou.py | 36 | def test_quiesces_each_target_before_storage_inspection_and_read_bench(self) -> None: | CODE |
| LOW | tests/perf/query_regression_runner.py | 477 | def discover_region_via_frontend(target: RunTarget, table: dict[str, Any], http_timeout: float) -> dict[str, Any]: | CODE |
| LOW | tests/perf/query_regression_runner.py | 837 | def enforce_storage_thresholds(storage: dict[str, Any] | None, base: dict[str, Any] | None, candidate: dict[str, Any] | | CODE |
| LOW | tests/perf/query_regression_runner.py | 892 | def planned_storage_thresholds(storage: dict[str, Any] | None) -> list[dict[str, Any]]: | CODE |
| LOW | tests/perf/query_regression_runner.py | 1039 | def write_frontend_prom_config(target: RunTarget, remote: dict[str, Any]) -> Path: | CODE |
| LOW | tests/perf/query_regression_runner.py | 1104 | def summarize_remote_write_chunks(chunks: list[dict[str, Any]]) -> dict[str, Any]: | CODE |
| LOW | tests/perf/query_regression_runner.py | 1115 | def flush_remote_physical_table(target: RunTarget, db: str, physical_table: str, args: argparse.Namespace, *, dry_run: b | CODE |
| LOW | tests/perf/query_regression_runner.py | 1125 | def run_remote_write_ingestion(generator: Path | None, target: RunTarget, remote: dict[str, Any], args: argparse.Namespa | CODE |
| LOW | tests/perf/query_regression_runner.py | 1182 | def expected_remote_write_rows(remote: dict[str, Any]) -> int: | CODE |
| LOW | tests/perf/query_regression_runner.py | 1231 | def run_remote_write_scenario(args: argparse.Namespace, case: dict[str, Any], case_path: Path, targets: list[RunTarget], | CODE |
| LOW | …development-docker-image/tests/test_binary_platform.py | 54 | def test_matching_architectures(self): | CODE |
| LOW | …development-docker-image/tests/test_binary_platform.py | 58 | def test_rejects_bad_executable_elf_and_platform(self): | CODE |
| LOW | …development-docker-image/tests/test_binary_platform.py | 78 | def test_rejects_wrong_architecture_and_symlink(self): | CODE |
| LOW | …development-docker-image/tests/test_binary_platform.py | 87 | def test_cli_success_and_failures(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 34 | def test_parse_supported_bounded_dotenv(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 38 | def test_parser_does_not_validate_values(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 41 | def test_parser_rejects_unmatched_and_unsupported_syntax(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 47 | def test_validation_and_reference(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 57 | def test_atomic_update_preserves_mode_and_canonicalizes_duplicates(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 67 | def test_update_rejects_symlink(self): | CODE |
| LOW⚡ | …db-development-docker-image/tests/test_image_config.py | 77 | def test_update_clears_omitted_registry_and_uses_private_new_file_mode(self): | CODE |
| LOW | …db-development-docker-image/tests/test_image_config.py | 88 | def test_failed_replace_keeps_original_and_removes_temporary_file(self): | CODE |
| LOW | scripts/check-super-imports.py | 41 | def check_file_for_super_import(file_path): | CODE |
| LOW⚡ | scripts/fix-udeps.py | 33 | def extract_unused_dependencies(report): | CODE |
| LOW | scripts/fix-udeps.py | 161 | def remove_dependency_from_toml(file_path, dep_name, dep_type): | CODE |
| LOW⚡ | scripts/fix-udeps.py | 207 | def process_unused_dependencies(unused_deps): | CODE |
| LOW | cyborg/bin/follow-up-docs-issue.ts | 107 | function checkPullRequestOpenedEvent(event: PullRequestOpenedEvent): boolean { | CODE |
| LOW | cyborg/bin/follow-up-docs-issue.ts | 112 | function checkPullRequestEditedEvent(event: PullRequestEditedEvent): boolean { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | grafana/scripts/check.sh | 14 | # Check if any invalid panels were found | COMMENT |
| LOW | docs/how-to/memory-profile-scripts/scripts/dump.sh | 21 | # Check if PID is provided as an argument | COMMENT |
| LOW | docs/how-to/memory-profile-scripts/scripts/dump.sh | 38 | # Check if ps command was successful and returned a number | COMMENT |
| LOW⚡ | …to/memory-profile-scripts/scripts/gen_from_collapse.sh | 7 | # Check if flamegraph.pl exists | COMMENT |
| LOW⚡ | …to/memory-profile-scripts/scripts/gen_from_collapse.sh | 13 | # Check if directory argument is provided | COMMENT |
| LOW⚡ | …to/memory-profile-scripts/scripts/gen_from_collapse.sh | 21 | # Check if the provided argument is a directory | COMMENT |
| LOW | scripts/install.sh | 127 | # Check if files already exist and prompt for override | COMMENT |
| LOW | .github/workflows/check-git-deps.yml | 60 | # Check if commit exists | COMMENT |
| LOW | .github/workflows/check-git-deps.yml | 62 | # Check if commit is on main branch | COMMENT |
| LOW | .github/scripts/copy-image.sh | 10 | # Check if necessary variables are set. | COMMENT |
| LOW | .github/scripts/copy-image.sh | 23 | # Check if docker is installed. | COMMENT |
| LOW | .github/scripts/upload-artifacts-to-s3.sh | 11 | # Check if necessary variables are set. | COMMENT |
| LOW | .github/scripts/upload-artifacts-to-s3.sh | 92 | # Check if jq is installed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/frontend/src/instance/jaeger.rs | 492 | // to utilize them through DataFrame APIs. To address this limitation, we create a new session | COMMENT |
| MEDIUM | src/index/src/inverted_index/create/sort_create.rs | 52 | /// Caller may leverage this behavior to create indexes with no data. | COMMENT |
| MEDIUM | src/mito2/src/compaction/run.rs | 589 | /// 3. Size efficiency - prefers merges that utilize available space effectively | COMMENT |
| MEDIUM | src/query/src/dist_plan/analyzer/fallback.rs | 17 | //! This is a temporary solution, and will be removed once we have a more robust plan rewriter | COMMENT |
| MEDIUM | src/query/src/dist_plan/analyzer/fallback.rs | 35 | /// This is a temporary solution, and will be removed once we have a more robust plan rewriter | COMMENT |
| MEDIUM | src/servers/src/repeated_field.rs | 23 | // This code is to leverage the pooling mechanism to avoid frequent heap allocation/de-allocation when decoding deeply n | COMMENT |
| MEDIUM | src/flow/src/adapter.rs | 594 | // burst mode, so that if we miss a tick, we will run immediately to fully utilize the cpu | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/perf/query_regression_runner.py | 264 | except Exception as e: # noqa: BLE001 - report HTTP/query failures as JSON | CODE |
| LOW | tests/perf/query_regression_runner.py | 293 | except Exception as e: # noqa: BLE001 - diagnostic loop | CODE |
| LOW | tests/perf/query_regression_runner.py | 1320 | except Exception as e: # noqa: BLE001 - write machine-readable failure report | CODE |
| LOW | tests/perf/query_regression_runner.py | 1400 | except Exception as e: # noqa: BLE001 - write machine-readable failure report | CODE |
| MEDIUM⚡ | scripts/fix-udeps.py | 26 | print(f"Error: Report file '{report_path}' not found.") | CODE |
| MEDIUM⚡ | scripts/fix-udeps.py | 29 | print(f"Error: Invalid JSON in report file: {e}") | CODE |
| LOW⚡ | scripts/fix-udeps.py | 202 | except Exception as e: | CODE |
| MEDIUM⚡ | scripts/fix-udeps.py | 203 | print(f"Error processing {file_path}: {e}") | CODE |
| MEDIUM | scripts/fix-udeps.py | 21 | def load_udeps_report(report_path): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ts/cases/standalone/common/join/using_clause_joins.sql | 14 | (101, 'John Doe', 'NYC', 1000), (102, 'Jane Smith', 'LA', 2000), (103, 'Bob Wilson', 'Chicago', 3000); | CODE |
| LOW | …ses/standalone/common/function/string/like_pattern.sql | 30 | ('John Doe', 'john@example.com', 1000), | CODE |
| LOW⚡ | src/index/benches/tokenizer_bench.rs | 96 | "The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed d | CODE |
| LOW⚡ | src/index/benches/tokenizer_bench.rs | 96 | "The quick brown fox jumps over the lazy dog. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed d | CODE |
| LOW⚡ | src/index/benches/tokenizer_bench.rs | 100 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| LOW⚡ | src/index/benches/tokenizer_bench.rs | 100 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolo | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/perf/query_regression_runner.py | 285 | CODE | |
| LOW | tests/perf/query_regression_runner.py | 446 | CODE | |
| LOW | tests/perf/query_regression_runner.py | 703 | CODE | |
| LOW | tests/perf/query_regression_runner.py | 766 | CODE | |
| LOW | tests/perf/query_regression_runner.py | 1295 | CODE | |
| LOW | scripts/check-snafu.py | 20 | CODE | |
| LOW | scripts/fix-udeps.py | 161 | CODE | |
| LOW | src/common/datasource/tests/orc/write.py | 55 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 112 | ### Why fully AI-generated PRs without understanding are not helpful | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/meta-srv/src/handler.rs | 498 | // In this implementation, we pre-occupy the message_id of 0, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/perf/query_regression_runner.py | 18 | CODE | |
| LOW | .github/scripts/query-regression-summary.py | 18 | CODE | |
| LOW | .github/scripts/query-regression-run.py | 18 | CODE | |
| LOW | .github/scripts/query-regression-pr-metadata.py | 18 | CODE | |
| LOW | .github/scripts/run-compat.py | 27 | CODE | |
| LOW | .github/scripts/run-compat.py | 35 | CODE | |
| LOW | src/common/datasource/tests/orc/write.py | 15 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/scripts/copy-image.sh | 44 | # Usage example: | COMMENT |
| LOW | .github/scripts/upload-artifacts-to-s3.sh | 122 | # Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/datanode/src/datanode.rs | 530 | object_store_manager.default_object_store().clone(), // TODO: implement custom storage for file engine | CODE |