Repository Analysis

Canner/WrenAI

Give AI agents the context to query business data correctly through the open context layer that gives AI agents grounded, governed memory, context, SQL across 20+ data sources, that helps you build agentic GenBI, text-to-sql, dashboards, and agentic analytics.

28.4 Moderate AI signal View on GitHub
28.4
Adjusted Score
28.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
15,379
Stars
Python
Language
84,073
Lines of Code
482
Files
1445
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 9MEDIUM 337LOW 1099

Pattern Findings

1445 matches across 10 categories. Click a row to expand file-level details.

Decorative Section Separators331 hits · 1183 pts
SeverityFileLineSnippet
MEDIUMcore/wren-core-wasm/examples/csv-quickstart.html146 // ── 1. Standard CSV with inferred schema ─────────────────────────
MEDIUMcore/wren-core-wasm/examples/csv-quickstart.html151 // ── 2. TSV: tab delimiter ────────────────────────────────────────
MEDIUMcore/wren-core-wasm/examples/csv-quickstart.html156 // ── 3. Headerless CSV with explicit Arrow schema ────────────────
MEDIUMcore/wren-core-wasm/src/lib.rs1114 // ── register_csv ────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_web.py33# ── GET / ──────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_web.py58# ── GET /fields ────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_web.py146# ── POST /save ─────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile.py85# ── Sensitive field masking ───────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile.py118# ── resolve_connection ────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile.py277# ── from-file import helpers (used by CLI) ────────────────────────────────────
MEDIUMcore/wren/tests/test_profile.py23# ── CRUD ──────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile.py148# ── resolve_profile_for_project ───────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile.py236# ── Round-trip persistence ────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py63# ── add ───────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py190# ── import dbt ────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py434# ── add --validate ────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py35# ── list ──────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py357# ── switch ────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py381# ── rm ────────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/test_profile_cli.py398# ── debug ─────────────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/connectors/test_canner.py82# ── helper-level unit tests ───────────────────────────────────────────────
MEDIUMcore/wren/tests/connectors/test_canner.py203# ── end-to-end testcontainer test ─────────────────────────────────────────
MEDIUMcore/wren/tests/connectors/test_trino.py39# ---------------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_trino.py41# ---------------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_trino.py230# ---------------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_trino.py232# ---------------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_trino.py299 # ------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_trino.py302 # ------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_mssql.py140# ----------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_mssql.py142# ----------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_postgres.py93# ---------------------------------------------------------------------------
MEDIUMcore/wren/tests/connectors/test_postgres.py95# ---------------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_osi.py102# ── Unit: WREN block extraction ───────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py138# ── Unit: extract_wren_config — precedence ────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py178# ── Unit: _parse_source ───────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py216# ── Unit: _pick_expression ────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py253# ── Unit: _is_calculated_expression ───────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py271# ── Integration: build_manifest_from_osi on minimal fixture ──────────────
MEDIUMcore/wren/tests/unit/test_osi.py345# ── Integration: build_json_from_osi (camelCase + layoutVersion) ──────────
MEDIUMcore/wren/tests/unit/test_osi.py372# ── Integration: TPC-DS full fixture (exercises every warning path) ───────
MEDIUMcore/wren/tests/unit/test_osi.py433# ── Integration: ref_sql source detection ────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py449# ── Integration: multi semantic_model requires selection ──────────────────
MEDIUMcore/wren/tests/unit/test_osi.py472# ── Integration: lint_osi_file ─────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py493# ── Regression: malformed inputs surface as ValidationError ──────────────
MEDIUMcore/wren/tests/unit/test_osi.py25# ── Fixtures ──────────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py34# ── Unit: parse_osi / select_semantic_model ───────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py568# ── CLI integration ──────────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_osi.py743# ── CLI: init --from-osi (one-way migration) ─────────────────────────────
MEDIUMcore/wren/tests/unit/test_engine.py69# ------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_engine.py71# ------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_engine.py100# ------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_engine.py102# ------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_engine.py114# ------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_engine.py116# ------------------------------------------------------------------
MEDIUMcore/wren/tests/unit/test_cli_store_tip.py40# ── main() (default callback) ──────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_cli_store_tip.py78# ── query subcommand ───────────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_mysql_helpers.py28# ── _coerce_limit ─────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_mysql_helpers.py55# ── _apply_limit ──────────────────────────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_mysql_helpers.py76# ── _arrow_decimal_from_mysql_field ──────────────────────────────────────
MEDIUMcore/wren/tests/unit/test_mysql_helpers.py132# ── TIME → duration round-trip ────────────────────────────────────────────
271 more matches not shown…
Hyper-Verbose Identifiers822 hits · 871 pts
SeverityFileLineSnippet
LOWcore/wren-core-py/tests/test_modeling_core.py155def test_get_available_functions():
LOWcore/wren-core-py/tests/test_modeling_core.py225def test_extractor_with_invalid_manifest(value, expected_error, error_message):
LOWcore/wren-core-py/tests/test_modeling_core.py245def test_resolve_used_table_names(sql, expected):
LOWcore/wren-core-py/tests/test_modeling_core.py449def test_backward_compatible_check():
LOWcore/wren-core-py/tests/test_modeling_core.py554def test_case_sensitive_without_quote():
LOWcore/wren-core-py/tests/test_cube.py75def test_time_dimension_with_date_range():
LOWcore/wren-core-py/tests/test_cube.py128def test_unknown_measure_error():
LOWcore/wren-core-py/tests/test_cube.py134def test_invalid_cube_query_json():
LOWcore/wren-core-py/tests/test_cube.py139def test_invalid_manifest_json():
LOWcore/wren/tests/test_profile_web.py43def test_form_contains_datasource_options(client):
LOWcore/wren/tests/test_profile_web.py52def test_form_has_save_button(client):
LOWcore/wren/tests/test_profile_web.py61def test_fields_endpoint_postgres(client):
LOWcore/wren/tests/test_profile_web.py72def test_fields_endpoint_password_type(client):
LOWcore/wren/tests/test_profile_web.py78def test_fields_endpoint_bigquery_file_input(client):
LOWcore/wren/tests/test_profile_web.py88def test_fields_with_variant_bigquery_project(client):
LOWcore/wren/tests/test_profile_web.py95def test_fields_with_variant_bigquery_dataset(client):
LOWcore/wren/tests/test_profile_web.py103def test_fields_variant_selector_rendered(client):
LOWcore/wren/tests/test_profile_web.py112def test_fields_no_variant_selector_for_postgres(client):
LOWcore/wren/tests/test_profile_web.py118def test_fields_empty_datasource_returns_empty(client):
LOWcore/wren/tests/test_profile_web.py125def test_fields_duckdb_url_label(client):
LOWcore/wren/tests/test_profile_web.py131def test_fields_duckdb_format_hidden(client):
LOWcore/wren/tests/test_profile_web.py138def test_fields_snowflake_schema_label(client):
LOWcore/wren/tests/test_profile_web.py149def test_save_creates_profile(isolated_profiles):
LOWcore/wren/tests/test_profile_web.py175def test_save_populates_result_dict(isolated_profiles):
LOWcore/wren/tests/test_profile_web.py187def test_save_missing_datasource(client):
LOWcore/wren/tests/test_profile_web.py195def test_save_with_json_fallback(isolated_profiles):
LOWcore/wren/tests/test_profile_web.py217def test_save_invalid_json_returns_error(client):
LOWcore/wren/tests/test_profile_web.py255def test_save_skips_empty_fields(isolated_profiles):
LOWcore/wren/tests/test_field_registry.py28def test_get_datasource_options_sorted():
LOWcore/wren/tests/test_field_registry.py36def test_get_fields_returns_field_defs():
LOWcore/wren/tests/test_field_registry.py43def test_get_fields_postgres_names():
LOWcore/wren/tests/test_field_registry.py61def test_auto_derive_password():
LOWcore/wren/tests/test_field_registry.py71def test_auto_derive_placeholder_from_examples():
LOWcore/wren/tests/test_field_registry.py79def test_ui_override_bigquery_credentials():
LOWcore/wren/tests/test_field_registry.py89def test_datasource_override_duckdb_url():
LOWcore/wren/tests/test_field_registry.py97def test_datasource_override_duckdb_format_hidden():
LOWcore/wren/tests/test_field_registry.py105def test_datasource_override_local_file_url():
LOWcore/wren/tests/test_field_registry.py135def test_get_fields_bigquery_default_variant():
LOWcore/wren/tests/test_field_registry.py145def test_get_fields_bigquery_project_variant():
LOWcore/wren/tests/test_field_registry.py153def test_no_missing_overrides_sf_schema():
LOWcore/wren/tests/test_field_registry.py160def test_no_missing_overrides_trino_schema():
LOWcore/wren/tests/test_field_registry.py167def test_snowflake_sf_schema_alias():
LOWcore/wren/tests/test_field_registry.py173def test_hidden_discriminator_fields():
LOWcore/wren/tests/test_field_registry.py184def test_fields_match_mcp_web_ui_postgres():
LOWcore/wren/tests/test_field_registry.py191def test_fields_match_mcp_web_ui_snowflake():
LOWcore/wren/tests/test_field_registry.py198def test_fields_match_mcp_web_ui_bigquery():
LOWcore/wren/tests/test_field_registry.py205def test_unknown_datasource_raises():
LOWcore/wren/tests/test_field_registry.py16def test_all_datasources_covered():
LOWcore/wren/tests/test_field_registry.py219def test_dict_fields_excluded():
LOWcore/wren/tests/test_field_registry.py234def test_get_fields_all_datasources():
LOWcore/wren/tests/test_field_registry.py242def test_get_fields_all_variants():
LOWcore/wren/tests/test_profile.py79def test_remove_last_profile_clears_active():
LOWcore/wren/tests/test_profile.py88def test_debug_masks_sensitive():
LOWcore/wren/tests/test_profile.py108def test_debug_no_active_profile():
LOWcore/wren/tests/test_profile.py113def test_debug_unknown_profile():
LOWcore/wren/tests/test_profile.py121def test_resolve_explicit_wins():
LOWcore/wren/tests/test_profile.py128def test_resolve_explicit_conn_info_wins():
LOWcore/wren/tests/test_profile.py135def test_resolve_profile_fallback():
LOWcore/wren/tests/test_profile.py253def test_profiles_yml_file_permissions(isolated_profiles: Path):
LOWcore/wren/tests/test_profile.py259def test_load_raw_invalid_yaml(isolated_profiles: Path):
762 more matches not shown…
Unused Imports125 hits · 116 pts
SeverityFileLineSnippet
LOWevals/spodbtify_ab/run_eval.py9
LOWcore/wren/tests/test_profile_web.py3
LOWcore/wren/tests/test_field_registry.py3
LOWcore/wren/tests/test_profile.py3
LOWcore/wren/tests/test_profile_cli.py3
LOWcore/wren/tests/connectors/test_datafusion.py7
LOWcore/wren/tests/connectors/test_snowflake.py6
LOWcore/wren/tests/connectors/test_duckdb.py7
LOWcore/wren/tests/connectors/test_canner.py10
LOWcore/wren/tests/connectors/test_mysql_connector.py7
LOWcore/wren/tests/connectors/test_mysql.py7
LOWcore/wren/tests/connectors/test_trino.py10
LOWcore/wren/tests/connectors/test_trino.py225
LOWcore/wren/tests/connectors/test_mssql.py7
LOWcore/wren/tests/connectors/test_clickhouse.py8
LOWcore/wren/tests/connectors/test_postgres.py7
LOWcore/wren/tests/unit/test_osi.py3
LOWcore/wren/tests/unit/test_version.py3
LOWcore/wren/tests/unit/test_engine.py7
LOWcore/wren/tests/unit/test_cli_store_tip.py6
LOWcore/wren/tests/unit/test_mysql_helpers.py8
LOWcore/wren/tests/unit/test_cte_rewriter.py3
LOWcore/wren/tests/unit/test_athena_connector.py7
LOWcore/wren/tests/unit/test_context_cli.py3
LOWcore/wren/tests/unit/test_dbt.py3
LOWcore/wren/tests/unit/test_profile_env_expansion.py9
LOWcore/wren/tests/unit/test_cli_profile_resolve.py5
LOWcore/wren/tests/unit/test_seed_queries.py3
LOWcore/wren/tests/unit/test_convert_mdl.py3
LOWcore/wren/tests/unit/test_clickhouse_helpers.py6
LOWcore/wren/tests/unit/test_case_sensitivity.py15
LOWcore/wren/tests/unit/test_config.py3
LOWcore/wren/tests/unit/test_context.py3
LOWcore/wren/tests/unit/test_context.py10
LOWcore/wren/tests/unit/test_context.py1095
LOWcore/wren/tests/unit/test_memory.py3
LOWcore/wren/tests/unit/test_type_mapping.py3
LOWcore/wren/tests/unit/test_cube_cli.py3
LOWcore/wren/tests/unit/test_policy.py6
LOWcore/wren/tests/unit/test_mssql_connection.py16
LOWcore/wren/tests/suite/manifests.py3
LOWcore/wren/tests/suite/query.py102
LOWcore/wren/tests/suite/test_ref_sql.py8
LOWcore/wren/src/wren/type_mapping.py19
LOWcore/wren/src/wren/utils_cli.py3
LOWcore/wren/src/wren/context_cli.py3
LOWcore/wren/src/wren/config.py3
LOWcore/wren/src/wren/dbt.py3
LOWcore/wren/src/wren/osi.py23
LOWcore/wren/src/wren/profile_web.py13
LOWcore/wren/src/wren/profile.py9
LOWcore/wren/src/wren/policy.py7
LOWcore/wren/src/wren/__init__.py6
LOWcore/wren/src/wren/__init__.py7
LOWcore/wren/src/wren/__init__.py8
LOWcore/wren/src/wren/docs.py3
LOWcore/wren/src/wren/cube_cli.py3
LOWcore/wren/src/wren/engine.py21
LOWcore/wren/src/wren/context.py3
LOWcore/wren/src/wren/cli.py3
65 more matches not shown…
Excessive Try-Catch Wrapping74 hits · 83 pts
SeverityFileLineSnippet
LOWcore/wren-core-py/tests/test_modeling_core.py387 except Exception as e:
LOWcore/wren-core-py/tests/test_modeling_core.py442 except Exception as e:
LOWcore/wren/tests/connectors/test_mssql.py40 except Exception:
MEDIUMcore/wren/tests/connectors/test_mssql.py37def _have_mssql_driver() -> bool:
LOWcore/wren/tests/connectors/test_clickhouse.py98 except Exception as e: # noqa: BLE001
LOWcore/wren/src/wren/context_cli.py482 except Exception as e:
LOWcore/wren/src/wren/context_cli.py497 except Exception as profile_exc:
LOWcore/wren/src/wren/context_cli.py813 except Exception as exc:
LOWcore/wren/src/wren/profile_web.py160 except Exception:
LOWcore/wren/src/wren/profile.py191 except Exception:
LOWcore/wren/src/wren/cube_cli.py314 except Exception as e:
LOWcore/wren/src/wren/engine.py120 except Exception as e:
LOWcore/wren/src/wren/engine.py136 except Exception as e:
LOWcore/wren/src/wren/engine.py200 except Exception as e:
LOWcore/wren/src/wren/engine.py224 except Exception as e:
LOWcore/wren/src/wren/context.py1318 except Exception as e:
LOWcore/wren/src/wren/context.py1342 except Exception as e:
LOWcore/wren/src/wren/cli.py568 except Exception:
LOWcore/wren/src/wren/cli.py574 except Exception:
LOWcore/wren/src/wren/cli.py580 except Exception:
LOWcore/wren/src/wren/cli.py41 except Exception as e:
LOWcore/wren/src/wren/cli.py418 except Exception as e:
LOWcore/wren/src/wren/cli.py442 except Exception as e:
LOWcore/wren/src/wren/cli.py503 except Exception as e:
LOWcore/wren/src/wren/cli.py531 except Exception as e:
LOWcore/wren/src/wren/cli.py548 except Exception as e:
LOWcore/wren/src/wren/profile_cli.py141 except Exception as exc:
LOWcore/wren/src/wren/profile_cli.py382 except Exception as exc: # noqa: BLE001 — surface whatever driver raises
LOWcore/wren/src/wren/memory/cli.py142 except Exception:
LOWcore/wren/src/wren/connector/redshift.py63 except Exception as e:
MEDIUMcore/wren/src/wren/connector/redshift.py60def close(self) -> None:
LOWcore/wren/src/wren/connector/clickhouse.py375 except Exception as e:
LOWcore/wren/src/wren/connector/trino.py434 except Exception as e:
LOWcore/wren/src/wren/connector/mssql.py70 except Exception as e:
LOWcore/wren/src/wren/connector/mssql.py86 except Exception as e:
LOWcore/wren/src/wren/connector/mssql.py107 except Exception:
LOWcore/wren/src/wren/connector/mssql.py149 except Exception:
LOWcore/wren/src/wren/connector/mssql.py167 except Exception:
LOWcore/wren/src/wren/connector/bigquery.py52 except Exception as e:
MEDIUMcore/wren/src/wren/connector/bigquery.py49def close(self) -> None:
LOWcore/wren/src/wren/connector/snowflake.py86 except Exception:
LOWcore/wren/src/wren/connector/postgres.py158 except Exception:
LOWcore/wren/src/wren/connector/postgres.py263 except Exception as e:
LOWcore/wren/src/wren/connector/postgres.py280 except Exception as e:
LOWcore/wren/src/wren/connector/postgres.py295 except Exception:
LOWcore/wren/src/wren/connector/postgres.py298 except Exception as e:
LOWcore/wren/src/wren/connector/spark.py45 except Exception:
LOWcore/wren/src/wren/connector/databricks.py58 except Exception as e:
MEDIUMcore/wren/src/wren/connector/databricks.py55def close(self) -> None:
LOWcore/wren/src/wren/connector/oracle.py164 except Exception:
LOWcore/wren/src/wren/connector/datafusion.py70 except Exception as e:
LOWcore/wren/src/wren/connector/duckdb.py71 except Exception:
LOWcore/wren/src/wren/connector/duckdb.py109 except Exception as e:
LOWcore/wren/src/wren/connector/duckdb.py118 except Exception as e:
MEDIUMcore/wren/src/wren/connector/duckdb.py115def close(self) -> None:
LOWcore/wren/src/wren/connector/athena.py74 except Exception:
LOWcore/wren/src/wren/connector/athena.py304 except Exception as e:
LOWcore/wren/src/wren/connector/athena.py318 except Exception as e:
LOWcore/wren/src/wren/connector/athena.py331 except Exception:
LOWcore/wren/src/wren/connector/canner.py142 except Exception:
14 more matches not shown…
Over-Commented Block46 hits · 46 pts
SeverityFileLineSnippet
LOWcore/wren-core-py/scripts/publish.sh1#!/usr/bin/env bash
LOWcore/wren-core-py/src/extractor.rs261 }
LOWcore/wren-core-py/src/remote_functions.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core-py/src/context.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core-wasm/src/lib.rs1//! # wren-core-wasm
LOWcore/wren-core-wasm/src/lib.rs21//!
LOWcore/wren-core-wasm/src/lib.rs41 ctx: datafusion::execution::context::SessionContext,
LOWcore/wren-core-wasm/src/lib.rs181 /// CSV is read with `arrow::csv::ReaderBuilder`. Schema is inferred from
LOWcore/wren-core-wasm/src/lib.rs281
LOWcore/wren-core-wasm/src/lib.rs581 ))
LOWcore/wren/scripts/publish.sh1#!/usr/bin/env bash
LOWcore/wren/src/wren/mdl/cte_rewriter.py121 return sqlglot.transpile(wren_sql, read="wren", write=self.dialect)[0]
LOWcore/wren/src/wren/mdl/cte_rewriter.py261 # column refs come from the post-normalize AST whose case
LOWcore/wren-core/rustfmt.toml1# Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/taplo.toml1# Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/core/src/mdl/context.rs221 // be casted to the target type if needed
LOWcore/wren-core/core/src/mdl/context.rs241 // Disable ScalarSubqueryToJoin to avoid generate invalid sql (join without condition)
LOWcore/wren-core/core/src/mdl/context.rs261 // TODO: Sort with pushdown-limit doesn't support to be unparse
LOW…n-core/core/src/logical_plan/optimize/type_coercion.rs901 .map(|(i, expr)| expr.cast_to(&new_types[i], schema))
LOW…n-core/core/src/logical_plan/optimize/type_coercion.rs921 //
LOW…en-core/core/src/logical_plan/analyze/model_anlayze.rs21use std::sync::Arc;
LOWcore/wren-core/core/src/logical_plan/analyze/scope.rs21/// SELECT a, b, c FROM table
LOWcore/wren-core/benchmarks/bench.sh1#!/usr/bin/env bash
LOWcore/wren-core/benchmarks/requirements.txt1# Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/benchmarks/compare.py1#!/usr/bin/env python
LOWcore/wren-core/sqllogictest/bin/sqllogictests.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/bin/sqllogictests.rs281 ///
LOWcore/wren-core/sqllogictest/src/test_context.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/src/test_context.rs181 // TODO: duplicate `orders.customer_state`
LOWcore/wren-core/sqllogictest/src/engine/conversion.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/src/engine/normalize.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/src/engine/normalize.rs61
LOWcore/wren-core/sqllogictest/src/engine/normalize.rs121
LOWcore/wren-core/sqllogictest/src/engine/error.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/src/engine/runner.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/src/engine/mod.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWcore/wren-core/sqllogictest/src/engine/output.rs1// Licensed to the Apache Software Foundation (ASF) under one
LOWdocs/core/.sync.yml1# Declarative sync config: WrenAI/docs/core → doc website
LOWsdk/wren-pydantic/pyproject.toml61
LOWsdk/wren-langchain/pyproject.toml61redshift = ["wren-engine[redshift]>=0.5.0"]
LOWscripts/sync-docs.sh1#!/usr/bin/env bash
LOW.github/actions/rust/setup-windows-builder/action.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW.github/actions/rust/setup-builder/action.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW.github/actions/rust/setup-macos-builder/action.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW…b/actions/rust/setup-macos-aarch64-builder/action.yaml1# Licensed to the Apache Software Foundation (ASF) under one
LOW.github/actions/rust/setup-rust-runtime/action.yaml1# Licensed to the Apache Software Foundation (ASF) under one
Deep Nesting34 hits · 33 pts
SeverityFileLineSnippet
LOWevals/spodbtify_ab/run_eval.py92
LOWcore/wren/src/wren/context_cli.py667
LOWcore/wren/src/wren/dbt.py730
LOWcore/wren/src/wren/dbt.py1116
LOWcore/wren/src/wren/osi.py411
LOWcore/wren/src/wren/policy.py66
LOWcore/wren/src/wren/docs.py145
LOWcore/wren/src/wren/docs.py168
LOWcore/wren/src/wren/context.py273
LOWcore/wren/src/wren/context.py700
LOWcore/wren/src/wren/context.py1254
LOWcore/wren/src/wren/context.py1283
LOWcore/wren/src/wren/cli.py151
LOWcore/wren/src/wren/cli.py450
LOWcore/wren/src/wren/profile_cli.py395
LOWcore/wren/src/wren/mdl/cte_rewriter.py304
LOWcore/wren/src/wren/mdl/cte_rewriter.py385
LOWcore/wren/src/wren/mdl/cte_rewriter.py331
LOWcore/wren/src/wren/memory/schema_indexer.py220
LOWcore/wren/src/wren/memory/cli.py109
LOWcore/wren/src/wren/memory/cli.py151
LOWcore/wren/src/wren/model/field_registry.py258
LOWcore/wren/src/wren/connector/clickhouse.py195
LOWcore/wren/src/wren/connector/trino.py147
LOWcore/wren/src/wren/connector/mssql.py116
LOWcore/wren/src/wren/connector/mssql.py264
LOWcore/wren/src/wren/connector/postgres.py146
LOWcore/wren/src/wren/connector/oracle.py50
LOWcore/wren/src/wren/connector/duckdb.py100
LOWcore/wren/src/wren/connector/athena.py135
LOWcore/wren/src/wren/connector/canner.py146
LOWcore/wren/src/wren/connector/mysql.py396
LOWsdk/wren-pydantic/src/wren_pydantic/_errors.py82
LOWsdk/wren-langchain/examples/langgraph_demo.py127
Cross-Language Confusion5 hits · 29 pts
SeverityFileLineSnippet
HIGHcore/wren/tests/connectors/test_snowflake.py147 assert result.equals(expected)
HIGHcore/wren/tests/unit/test_osi.py263 ("a || b", "concat", True), # concat
HIGHcore/wren/tests/unit/test_profile_env_expansion.py149 (mirrors the typical ``cd subdir && wren --sql`` usage)."""
HIGHcore/wren/src/wren/profile.py174 f"profiles.yml: 'active' must be a string or null; got {type(active).__name__}.\n"
HIGHcore/wren/src/wren/context.py67| Rebuild after changes | `wren context build && wren memory index` |
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippet
HIGHsdk/wren-pydantic/src/wren_pydantic/_tools_memory.py0recall up to *limit* past nl→sql pairs similar to *question*. useful as few-shot examples before writing new sql. pairs
HIGHsdk/wren-pydantic/src/wren_pydantic/_tools_memory.py0recall up to *limit* past nl→sql pairs similar to *question*. useful as few-shot examples before writing new sql. pairs
HIGHsdk/wren-langchain/src/wren_langchain/_tools_memory.py0recall up to *limit* past nl→sql pairs similar to *question*. useful as few-shot examples before writing new sql. pairs
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippet
LOWcore/wren-core-py/scripts/publish.sh5# Usage:
LOWcore/wren/scripts/publish.sh5# Usage:
LOWscripts/sync-docs.sh10# Usage:
LOWskills/install.sh4# Usage:
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHcore/wren/src/wren/model/field_registry.py342Return ordered FieldDef list for a datasource. Args: datasource: DataSource name (e.g. "bigquery").