ktx/packages/cli/test/context/scan
Patel Dhrit fe7e6bd1fa
feat(connector): add Amazon Athena connector via Glue Data Catalog (#309)
* feat(connector): add Amazon Athena connector via Glue Data Catalog

* fix(athena): address reviewer feedback

* fix(athena): wire scope discovery, fix normalizeDriver, tighten types and tests

* fix(athena): honor databases scope, wire sql-analysis dialect, harden config resolution

- introspect() limits to the configured `databases` scope instead of scanning
  every Glue database in the account (docs promised this; connector ignored it)
- add athena -> athena to sql-analysis SQLGLOT_DIALECTS so `ktx sql` and MCP
  read-only validation parse Athena SQL under the Trino grammar, not postgres
- stringConfigValue coerces a resolved-empty `env:` reference to undefined so
  optional fields fall back to their defaults (workgroup 'primary', catalog
  'AwsDataCatalog') instead of ''
- drop trailing whitespace in dialect.test.ts

* fix(athena): integrate with main's SQL/non-SQL dialect split and add dialect notes

Rebase onto main, which introduced the KtxDialect (core) vs KtxSqlDialect
(SQL-only) split for MongoDB:
- KtxAthenaDialect implements KtxSqlDialect; the connector resolves it via
  getSqlDialectForDriver so SQL-generation methods stay in scope
- add authored athena.md SQL notes for the sql_dialect_notes MCP tool, required
  now that athena resolves to the athena sqlglot dialect (dialect-notes coverage
  is derived from the warehouse-driver registry)

---------

Co-authored-by: Andrey Avtomonov <andreybavt@gmail.com>
2026-07-02 15:00:26 +02:00
..
constraint-discovery.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
credentials.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
data-dictionary.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
description-generation.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
description-resume.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
embedding-text.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
enabled-tables.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
enrichment-state.test.ts Resumable and fault-tolerant source ingest (spec #22) (#315) 2026-06-30 01:29:28 +02:00
enrichment-summary.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
enrichment-types.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
entity-details.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
local-enrichment-artifacts.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
local-enrichment-federated-join.test.ts feat(duckdb): cross-database federation via derived DuckDB connection (#295) 2026-06-15 15:01:39 +00:00
local-enrichment.test.ts Resumable and fault-tolerant source ingest (spec #22) (#315) 2026-06-30 01:29:28 +02:00
local-scan.test.ts feat(connector): add Amazon Athena connector via Glue Data Catalog (#309) 2026-07-02 15:00:26 +02:00
local-structural-artifacts.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
object-introspection.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
relationship-benchmark-report.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
relationship-benchmarks.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-budget.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-candidates.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-composite-candidates.test.ts feat(connectors): add MongoDB connector (#305) (#310) 2026-06-29 15:17:56 +02:00
relationship-detection-budget.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
relationship-diagnostics.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
relationship-discovery.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
relationship-formal-metadata.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-graph-resolver.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-llm-proposal.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
relationship-locality.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-name-similarity.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-profiling.test.ts feat(connectors): add MongoDB connector (#305) (#310) 2026-06-29 15:17:56 +02:00
relationship-scoring.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
relationship-validation.test.ts feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
table-ref.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
type-normalization.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
types.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
warehouse-catalog.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00