mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-13 11:22:11 +02:00
refactor(cli): use dialect display parsing for warehouse catalog
This commit is contained in:
parent
70a59c8c01
commit
47f3206979
2 changed files with 43 additions and 49 deletions
|
|
@ -156,6 +156,17 @@ describe('WarehouseCatalogService', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('keeps one-part table display fallback for loose catalog resolution', async () => {
|
||||
await seedLiveDatabaseScan();
|
||||
const catalog = new WarehouseCatalogService({ fileStore: project.fileStore });
|
||||
|
||||
await expect(catalog.resolveDisplay('warehouse', 'orders')).resolves.toMatchObject({
|
||||
resolved: { catalog: null, db: 'public', name: 'orders' },
|
||||
candidates: [],
|
||||
dialect: 'postgres',
|
||||
});
|
||||
});
|
||||
|
||||
it('treats two-part BigQuery identifiers as ambiguous instead of guessing', async () => {
|
||||
await seedLiveDatabaseScan('warehouse', 'sync-bigquery', 'bigquery');
|
||||
const catalog = new WarehouseCatalogService({ fileStore: project.fileStore });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue