mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
A configured warehouse was always a scan/ingest target. The only way to use a connection purely for SQL execution (ktx sql / sql_execution) was the leaky workaround of an empty setup.database_connection_ids — which actually re-includes every warehouse via the 'fall back to all' branch — so e.g. a BigQuery connection meant only for read-only queries triggered a full-billing-project scan. - Add a per-connection scan_enabled flag (default true) to warehouse connections. scan_enabled: false registers the connection for execution only and never as a scan target. - Route every scan-target selection path through one predicate (isScanTargetWarehouse): both ingest (primaryWarehouseConnectionIds, including the all-warehouses fallback) and setup (configuredPrimaryConnectionIds) now exclude execute-only connections. Setup validates the credential but skips scope discovery and scan for them. Execution paths are untouched — the warehouse descriptor still resolves, so ktx sql / sql_execution keep working. - Scripted setup with no --database-schema no longer silently scopes the scan to every discovered schema/dataset: it warns with the count and names how to narrow (--database-schema) or opt out (scan_enabled: false). |
||
|---|---|---|
| .. | ||
| adapters | ||
| clustering | ||
| context-candidates | ||
| context-evidence | ||
| dbt-shared | ||
| historic-sql-probes | ||
| isolated-diff | ||
| memory-flow | ||
| page-triage | ||
| stages | ||
| tools | ||
| action-identity.test.ts | ||
| artifact-gates.test.ts | ||
| canonical-pins.test.ts | ||
| diff-set.service.test.ts | ||
| final-gate-repair.test.ts | ||
| finalization-scope.test.ts | ||
| historic-sql-probes.test.ts | ||
| ingest-bundle.runner.isolated-diff.test.ts | ||
| ingest-bundle.runner.test.ts | ||
| ingest-profile.test.ts | ||
| ingest-prompts.test.ts | ||
| ingest-runtime-assets.test.ts | ||
| ingest-trace.test.ts | ||
| local-adapters.test.ts | ||
| local-bundle-ingest.test.ts | ||
| local-bundle-runtime.test.ts | ||
| local-embedding-provider.integration.test.ts | ||
| local-mapping-reconcile.test.ts | ||
| local-metabase-ingest.test.ts | ||
| local-stage-ingest.test.ts | ||
| raw-sources-paths.test.ts | ||
| repo-fetch.test.ts | ||
| report-snapshot.test.ts | ||
| reports.test.ts | ||
| semantic-layer-target-policy.test.ts | ||
| source-adapter-registry.test.ts | ||
| sqlite-bundle-ingest-store.test.ts | ||
| sqlite-local-ingest-store.test.ts | ||
| wiki-body-refs.test.ts | ||
| wiki-sl-ref-repair.test.ts | ||