Commit graph

11 commits

Author SHA1 Message Date
Andrey Avtomonov
8b3274d88f fix(cli): allow debug telemetry under opt-out env 2026-05-26 07:59:47 +02:00
Andrey Avtomonov
4c303db2a4 Merge remote-tracking branch 'origin/main' into connector-solid-review 2026-05-25 17:27:40 +02:00
Andrey Avtomonov
cbe6a5f4b3 fix(cli): carry catalog through the picker so BigQuery/Snowflake/SQL Server scope filters match
The setup picker's KtxTableListEntry was a 2-level { schema, name }, so
qualifiedTableId always wrote db.name into enabled_tables. When BigQuery,
Snowflake, or SQL Server later ran fast ingest, their introspect step filtered
the scope set with scopedTableNames(scope, { catalog: projectId|database, db })
— catalog was non-null on the introspect side but null in the scope refs, so
every entry was rejected, the live-database adapter staged zero table files,
and detect() failed with 'Adapter "live-database" did not recognize fetched
source output'.

Align the picker boundary with the canonical 3-level KtxTableRef:

- Add catalog: string | null to KtxTableListEntry.
- BigQuery/Snowflake/SQL Server listTables populate catalog from the
  resolved projectId / database; Postgres/MySQL/ClickHouse/SQLite set null.
- qualifiedTableId emits catalog.schema.name when catalog is non-null
  (resolveEnabledTables already accepts the 3-part shape) and
  schemasFromEnabledTables now goes through parseDottedTableEntry so it
  recovers the schema correctly from both 2-part and 3-part entries.
- Export parseDottedTableEntry from enabled-tables.ts (@internal) for picker
  reuse.

Update listTables expectations in all seven connector tests and the setup /
picker test fixtures. Add a picker regression test that covers the
catalog-bearing round-trip (save + refine).
2026-05-25 17:23:05 +02:00
Andrey Avtomonov
3a3086b7cd Improve setup daemon diagnostics 2026-05-25 16:14:22 +02:00
Andrey Avtomonov
853ab10be2 fix(cli): close driver registry type export gaps 2026-05-25 14:00:34 +02:00
Andrey Avtomonov
65cca7bd04 refactor(historic-sql): route dialect support through driver registry 2026-05-25 13:47:14 +02:00
Andrey Avtomonov
ff906a72fc feat(cli): add warehouse driver registry 2026-05-25 13:40:56 +02:00
Andrey Avtomonov
4e4adcc061 test(connectors): cover required table listing 2026-05-25 13:37:33 +02:00
Andrey Avtomonov
54dd9cc518 feat(sqlite): implement connector scope listing 2026-05-25 13:36:06 +02:00
Andrey Avtomonov
8ec2acba40 refactor(cli): standardize BigQuery scope listing 2026-05-25 13:33:03 +02:00
Andrey Avtomonov
4619217804 test: split cli tests from source tree 2026-05-25 13:17:46 +02:00