@lightdash/cli 0.3456.0 → 0.3457.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -291,6 +291,7 @@ type CliValidateStarted = BaseTrack & {
291
291
  projectId: string;
292
292
  isPreview: boolean;
293
293
  validationTargets: string[];
294
+ validateWarehouseColumns: boolean;
294
295
  includedSpacesCount: number;
295
296
  excludedSpacesCount: number;
296
297
  };
@@ -303,6 +304,7 @@ type CliValidateCompleted = BaseTrack & {
303
304
  projectId: string;
304
305
  isPreview: boolean;
305
306
  validationTargets: string[];
307
+ validateWarehouseColumns: boolean;
306
308
  includedSpacesCount: number;
307
309
  excludedSpacesCount: number;
308
310
  durationMs: number;
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/analytics/analytics.ts"],"names":[],"mappings":"AAmDA,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;AAEjD;;;EAGE;AACF,KAAK,2BAA2B,GAAG,SAAS,GAAG;IAC3C,KAAK,EAAE,4BAA4B,CAAC;IACpC,UAAU,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL,CAAC;AACF,KAAK,6BAA6B,GAAG,SAAS,GAAG;IAC7C,KAAK,EAAE,8BAA8B,CAAC;IACtC,UAAU,EAAE;QACR,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;CACL,CAAC;AACF,KAAK,yBAAyB,GAAG,SAAS,GAAG;IACzC,KAAK,EAAE,0BAA0B,CAAC;I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ACtB,WAAW,GACX,iBAAiB,GACjB,mBAAmB,GACnB,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,GACf,iBAAiB,GACjB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,gBAAgB,GAChB,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,qBAAqB,GACrB,2BAA2B,GAC3B,6BAA6B,GAC7B,yBAAyB,GACzB,QAAQ,GACR,gBAAgB,GAChB,wBAAwB,GACxB,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,kBAAkB,GAClB,cAAc,GACd,kBAAkB,GAClB,mBAAmB,CAAC;AAa1B,eAAO,MAAM,eAAe,GAAI,OAAO,OAAO,KAAG,MAehD,CAAC;AAEF,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,WAAW;WAMb,KAAK,CAAC,OAAO,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;WAmCpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAwBxE;AAED,eAAO,MAAM,SAAS,EAAE,kBAA6C,CAAC"}
@@ -10,6 +10,7 @@ export type CompileHandlerOptions = DbtCompileOptions & {
10
10
  startOfWeek?: number;
11
11
  warehouseCredentials?: boolean;
12
12
  disableTimestampConversion?: boolean;
13
+ validateWarehouseColumns?: boolean;
13
14
  };
14
15
  export declare const compile: (options: CompileHandlerOptions) => Promise<(Explore | ExploreError)[]>;
15
16
  export declare const compileHandler: (originalOptions: CompileHandlerOptions) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../src/handlers/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,OAAO,EACP,YAAY,EAaf,MAAM,mBAAmB,CAAC;AAiB3B,O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,wCAgU3D,CAAC;AAEF,eAAO,MAAM,cAAc,GACvB,iBAAiB,qBAAqB,kBAmCzC,CAAC"}
@@ -18,6 +18,15 @@ const styles = tslib_1.__importStar(require("../styles"));
18
18
  const compile_1 = require("./dbt/compile");
19
19
  const getDbtVersion_1 = require("./dbt/getDbtVersion");
20
20
  const getWarehouseClient_1 = tslib_1.__importDefault(require("./dbt/getWarehouseClient"));
21
+ const getDisplayableDiagnostics = (explore) => {
22
+ const diagnostics = explore.warnings ?? [];
23
+ const errors = diagnostics.filter((diagnostic) => diagnostic.type === common_1.InlineErrorType.WAREHOUSE_COLUMN_ERROR);
24
+ const warnings = process.env.PARTIAL_COMPILATION_ENABLED !== 'false'
25
+ ? diagnostics.filter((diagnostic) => diagnostic.type !==
26
+ common_1.InlineErrorType.WAREHOUSE_COLUMN_ERROR)
27
+ : [];
28
+ return { errors, warnings };
29
+ };
21
30
  const getExploresFromLightdashYmlProject = async (projectDir, lightdashProjectConfig, startOfWeek, disableTimestampConversion) => {
22
31
  // Try to load Lightdash YAML models
23
32
  const lightdashModels = await (0, loader_1.loadLightdashModels)(projectDir);
@@ -166,6 +175,9 @@ const compile = async (options) => {
166
175
  let explores = null;
167
176
  let dbtMetrics = null;
168
177
  explores = await getExploresFromLightdashYmlProject(absoluteProjectPath, lightdashProjectConfig, options.startOfWeek, options.disableTimestampConversion);
178
+ if (explores !== null && options.validateWarehouseColumns === true) {
179
+ console.error(styles.warning('> Skipping warehouse column validation because it is not supported for Lightdash YAML projects'));
180
+ }
169
181
  // Load dbt Project
170
182
  if (explores === null) {
171
183
  if (!dbtVersionResult.success) {
@@ -216,21 +228,33 @@ const compile = async (options) => {
216
228
  }
217
229
  // Skipping assumes yml has the field types.
218
230
  let catalog = {};
231
+ let validationWarehouseClient = null;
219
232
  if (!options.skipWarehouseCatalog) {
233
+ const isDbtCloudCLI = dbtVersionResult.success &&
234
+ dbtVersionResult.version.isDbtCloudCLI;
220
235
  const { warehouseClient } = await (0, getWarehouseClient_1.default)({
221
- isDbtCloudCLI: dbtVersionResult.success
222
- ? dbtVersionResult.version.isDbtCloudCLI
223
- : false,
236
+ isDbtCloudCLI,
224
237
  profilesDir: options.profilesDir,
225
238
  profile: options.profile || context.profileName,
226
239
  target: options.target,
227
240
  startOfWeek: options.startOfWeek,
228
241
  });
242
+ // dbt Cloud CLI clients stub runQuery, so column probing would
243
+ // silently pass instead of validating anything
244
+ if (!isDbtCloudCLI) {
245
+ validationWarehouseClient = warehouseClient;
246
+ }
247
+ else if (options.validateWarehouseColumns === true) {
248
+ console.error(styles.warning('> Skipping warehouse column validation because dbt Cloud CLI cannot run warehouse queries'));
249
+ }
229
250
  globalState_1.default.debug('> Fetching warehouse catalog');
230
251
  catalog = await warehouseClient.getCatalog((0, common_1.getSchemaStructureFromDbtModels)(validModels));
231
252
  }
232
253
  else {
233
254
  globalState_1.default.debug('> Skipping warehouse catalog');
255
+ if (options.validateWarehouseColumns === true) {
256
+ console.error(styles.warning('> Skipping warehouse column validation because --skip-warehouse-catalog was supplied'));
257
+ }
234
258
  }
235
259
  const validModelsWithTypes = applyMetricFlowMetrics((0, common_1.attachTypesToModels)(validModels, catalog, false,
236
260
  // Snowflake catalogs report uppercase identifiers; match the
@@ -257,8 +281,18 @@ const compile = async (options) => {
257
281
  allowPartialCompilation: process.env.PARTIAL_COMPILATION_ENABLED !== 'false',
258
282
  postProcessors: [common_1.preAggregatePostProcessor],
259
283
  });
284
+ const validatedExplores = options.validateWarehouseColumns === true &&
285
+ validationWarehouseClient
286
+ ? await (0, warehouses_1.validateWarehouseColumnReferences)({
287
+ explores: validExplores,
288
+ client: validationWarehouseClient,
289
+ tags: {
290
+ query_context: common_1.QueryExecutionContext.CLI,
291
+ },
292
+ })
293
+ : validExplores;
260
294
  console.error('');
261
- explores = [...validExplores, ...failedExplores];
295
+ explores = [...validatedExplores, ...failedExplores];
262
296
  dbtMetrics = manifest.metrics;
263
297
  }
264
298
  let errors = 0;
@@ -272,25 +306,34 @@ const compile = async (options) => {
272
306
  messages = `: ${styles.error(e.errors.map((err) => err.message).join(', '))}`;
273
307
  errors += 1;
274
308
  }
275
- else if (process.env.PARTIAL_COMPILATION_ENABLED !== 'false' &&
276
- 'warnings' in e &&
277
- e.warnings &&
278
- e.warnings.length > 0) {
279
- status = styles.warning('PARTIAL_SUCCESS');
280
- messages = `\n${e.warnings
281
- .map((warning) => ` ${styles.warning(`⚠ ${warning.message}`)}`)
282
- .join('\n')}`;
283
- partialSuccess += 1;
284
- }
285
309
  else {
286
- status = styles.success('SUCCESS');
287
- success += 1;
310
+ const { errors: warehouseErrors, warnings } = getDisplayableDiagnostics(e);
311
+ if (warehouseErrors.length > 0) {
312
+ status = styles.error('ERROR');
313
+ messages = `: ${styles.error(warehouseErrors.map((error) => error.message).join(', '))}`;
314
+ if (warnings.length > 0) {
315
+ messages += `\n${warnings
316
+ .map((warning) => ` ${styles.warning(`⚠ ${warning.message}`)}`)
317
+ .join('\n')}`;
318
+ }
319
+ errors += 1;
320
+ }
321
+ else if (warnings.length > 0) {
322
+ status = styles.warning('PARTIAL_SUCCESS');
323
+ messages = `\n${warnings
324
+ .map((warning) => ` ${styles.warning(`⚠ ${warning.message}`)}`)
325
+ .join('\n')}`;
326
+ partialSuccess += 1;
327
+ }
328
+ else {
329
+ status = styles.success('SUCCESS');
330
+ success += 1;
331
+ }
288
332
  }
289
333
  console.error(`- ${status}> ${e.name} ${messages}`);
290
334
  });
291
335
  console.error('');
292
- if (process.env.PARTIAL_COMPILATION_ENABLED !== 'false' &&
293
- partialSuccess > 0) {
336
+ if (partialSuccess > 0) {
294
337
  console.error(`Compiled ${explores.length} explores, SUCCESS=${success} PARTIAL_SUCCESS=${partialSuccess} ERRORS=${errors}`);
295
338
  }
296
339
  else {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=compileWarehouseColumnValidation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compileWarehouseColumnValidation.test.d.ts","sourceRoot":"","sources":["../../src/handlers/compileWarehouseColumnValidation.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,441 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const common_1 = require("@lightdash/common");
5
+ const warehouses_1 = require("@lightdash/warehouses");
6
+ const promises_1 = tslib_1.__importDefault(require("fs/promises"));
7
+ const os = tslib_1.__importStar(require("os"));
8
+ const path = tslib_1.__importStar(require("path"));
9
+ const context_1 = require("../dbt/context");
10
+ const manifest_1 = require("../dbt/manifest");
11
+ const validation_1 = require("../dbt/validation");
12
+ const loader_1 = require("../lightdash/loader");
13
+ const compile_1 = require("./compile");
14
+ const compile_2 = require("./dbt/compile");
15
+ const getDbtVersion_1 = require("./dbt/getDbtVersion");
16
+ const getWarehouseClient_1 = tslib_1.__importDefault(require("./dbt/getWarehouseClient"));
17
+ vi.mock('../analytics/analytics');
18
+ vi.mock('../config', () => ({
19
+ getConfig: vi.fn().mockResolvedValue({ user: null, context: null }),
20
+ }));
21
+ vi.mock('../dbt/context');
22
+ vi.mock('../dbt/manifest');
23
+ vi.mock('../dbt/validation');
24
+ vi.mock('../lightdash/loader');
25
+ vi.mock('./dbt/compile');
26
+ vi.mock('./dbt/getDbtVersion');
27
+ vi.mock('./dbt/getWarehouseClient');
28
+ vi.mock('@lightdash/warehouses', async (importOriginal) => {
29
+ const original = await importOriginal();
30
+ return {
31
+ ...original,
32
+ validateWarehouseColumnReferences: vi.fn(),
33
+ };
34
+ });
35
+ const model = {
36
+ checksum: { name: '', checksum: '' },
37
+ fqn: [],
38
+ language: '',
39
+ package_name: '',
40
+ path: '',
41
+ raw_code: '',
42
+ compiled: true,
43
+ unique_id: 'model.test.my_model',
44
+ description: '',
45
+ resource_type: 'model',
46
+ columns: {
47
+ id: {
48
+ name: 'id',
49
+ data_type: common_1.DimensionType.NUMBER,
50
+ meta: {},
51
+ },
52
+ },
53
+ meta: {},
54
+ database: 'my_database',
55
+ schema: 'my_schema',
56
+ name: 'my_model',
57
+ alias: 'my_model',
58
+ tags: [],
59
+ relation_name: '"my_database"."my_schema"."my_model"',
60
+ depends_on: { nodes: [] },
61
+ patch_path: null,
62
+ original_file_path: '',
63
+ };
64
+ // Metric name collides with the `id` dimension, producing an unconditional
65
+ // DUPLICATE_FIELD_NAME warning even when partial compilation is disabled
66
+ const modelWithDuplicateMetricName = {
67
+ ...model,
68
+ columns: {
69
+ id: {
70
+ name: 'id',
71
+ data_type: common_1.DimensionType.NUMBER,
72
+ meta: { metrics: { id: { type: common_1.MetricType.COUNT } } },
73
+ },
74
+ },
75
+ };
76
+ const lightdashYmlModel = {
77
+ type: 'model',
78
+ name: 'yml_model',
79
+ sql_from: '"my_database"."my_schema"."yml_model"',
80
+ dimensions: [{ name: 'id', type: common_1.DimensionType.NUMBER, sql: 'id' }],
81
+ };
82
+ // Models are injected through the mocked validateDbtModel, so nodes stay empty
83
+ const manifest = {
84
+ nodes: {},
85
+ metadata: {
86
+ dbt_schema_version: 'https://schemas.getdbt.com/dbt/manifest/v12.json',
87
+ generated_at: '2026-01-01T00:00:00Z',
88
+ adapter_type: 'postgres',
89
+ },
90
+ metrics: {},
91
+ docs: {},
92
+ };
93
+ const baseOptions = (projectDir) => ({
94
+ projectDir,
95
+ profilesDir: '',
96
+ target: undefined,
97
+ profile: undefined,
98
+ vars: undefined,
99
+ verbose: false,
100
+ startOfWeek: 0,
101
+ skipWarehouseCatalog: undefined,
102
+ skipDbtCompile: true,
103
+ useDbtList: false,
104
+ select: undefined,
105
+ models: undefined,
106
+ threads: undefined,
107
+ noVersionCheck: false,
108
+ exclude: undefined,
109
+ selector: undefined,
110
+ state: undefined,
111
+ fullRefresh: false,
112
+ defer: false,
113
+ targetPath: undefined,
114
+ favorState: false,
115
+ combineManifest: undefined,
116
+ warehouseCredentials: false,
117
+ disableTimestampConversion: false,
118
+ });
119
+ const SKIP_WARNING = 'Skipping warehouse column validation because --skip-warehouse-catalog was supplied';
120
+ const YML_SKIP_WARNING = 'Skipping warehouse column validation because it is not supported for Lightdash YAML projects';
121
+ const DBT_CLOUD_SKIP_WARNING = 'Skipping warehouse column validation because dbt Cloud CLI cannot run warehouse queries';
122
+ const setupWarehouseClient = () => {
123
+ const credentials = {
124
+ type: common_1.WarehouseTypes.POSTGRES,
125
+ host: 'localhost',
126
+ user: 'test_user',
127
+ password: 'test_password',
128
+ port: 5432,
129
+ dbname: 'my_database',
130
+ schema: 'my_schema',
131
+ };
132
+ const warehouseClient = new warehouses_1.PostgresWarehouseClient(credentials);
133
+ vi.spyOn(warehouseClient, 'getCatalog').mockResolvedValue({});
134
+ vi.mocked(getWarehouseClient_1.default).mockResolvedValue({
135
+ warehouseClient,
136
+ credentials,
137
+ });
138
+ return warehouseClient;
139
+ };
140
+ const mockProberToAppendWarning = (message) => {
141
+ vi.mocked(warehouses_1.validateWarehouseColumnReferences).mockImplementation(async ({ explores }) => explores.map((explore) => (0, common_1.isExploreError)(explore)
142
+ ? explore
143
+ : {
144
+ ...explore,
145
+ warnings: [
146
+ ...(explore.warnings ?? []),
147
+ {
148
+ type: common_1.InlineErrorType.WAREHOUSE_COLUMN_ERROR,
149
+ message,
150
+ },
151
+ ],
152
+ }));
153
+ };
154
+ describe('compile warehouse column validation', () => {
155
+ let tempDir;
156
+ let errorOutput;
157
+ beforeEach(async () => {
158
+ vi.clearAllMocks();
159
+ tempDir = await promises_1.default.mkdtemp(path.join(os.tmpdir(), 'lightdash-compile-validation-test-'));
160
+ vi.mocked(getDbtVersion_1.tryGetDbtVersion).mockResolvedValue({
161
+ success: true,
162
+ version: {
163
+ verboseVersion: '1.8.0',
164
+ versionOption: common_1.SupportedDbtVersions.V1_8,
165
+ isDbtCloudCLI: false,
166
+ isDbtFusion: false,
167
+ },
168
+ });
169
+ vi.mocked(context_1.getDbtContext).mockResolvedValue({
170
+ projectName: 'test_project',
171
+ profileName: 'test_profile',
172
+ targetDir: path.join(tempDir, 'target'),
173
+ modelsDir: 'models',
174
+ });
175
+ vi.mocked(compile_2.maybeCompileModelsAndJoins).mockResolvedValue({
176
+ compiledModelIds: undefined,
177
+ originallySelectedModelIds: undefined,
178
+ });
179
+ vi.mocked(manifest_1.loadManifest).mockResolvedValue(manifest);
180
+ vi.mocked(loader_1.loadLightdashModels).mockResolvedValue([]);
181
+ vi.mocked(validation_1.validateDbtModel).mockResolvedValue({
182
+ valid: [model],
183
+ invalid: [],
184
+ skipped: [],
185
+ });
186
+ vi.mocked(warehouses_1.validateWarehouseColumnReferences).mockImplementation(async ({ explores }) => explores);
187
+ errorOutput = [];
188
+ vi.spyOn(console, 'error').mockImplementation((...args) => {
189
+ errorOutput.push(args.map(String).join(' '));
190
+ });
191
+ });
192
+ afterEach(async () => {
193
+ vi.unstubAllEnvs();
194
+ vi.restoreAllMocks();
195
+ await promises_1.default.rm(tempDir, { recursive: true, force: true });
196
+ });
197
+ test('skips warehouse client and column validation when skipWarehouseCatalog is set', async () => {
198
+ const result = await (0, compile_1.compile)({
199
+ ...baseOptions(tempDir),
200
+ skipWarehouseCatalog: true,
201
+ validateWarehouseColumns: true,
202
+ });
203
+ // Credential-less CI flow: no warehouse client is ever created
204
+ expect(getWarehouseClient_1.default).not.toHaveBeenCalled();
205
+ expect(warehouses_1.validateWarehouseColumnReferences).not.toHaveBeenCalled();
206
+ expect(result.filter(common_1.isExploreError)).toEqual([]);
207
+ expect(result.map((explore) => explore.name)).toEqual(['my_model']);
208
+ expect(errorOutput).toEqual(expect.arrayContaining([expect.stringContaining(SKIP_WARNING)]));
209
+ });
210
+ test('validates warehouse column references when warehouse catalog is not skipped', async () => {
211
+ const warehouseClient = setupWarehouseClient();
212
+ const result = await (0, compile_1.compile)({
213
+ ...baseOptions(tempDir),
214
+ skipWarehouseCatalog: false,
215
+ validateWarehouseColumns: true,
216
+ });
217
+ expect(getWarehouseClient_1.default).toHaveBeenCalledTimes(1);
218
+ expect(warehouseClient.getCatalog).toHaveBeenCalledTimes(1);
219
+ expect(warehouses_1.validateWarehouseColumnReferences).toHaveBeenCalledTimes(1);
220
+ expect(warehouses_1.validateWarehouseColumnReferences).toHaveBeenCalledWith(expect.objectContaining({ client: warehouseClient }));
221
+ expect(result.filter(common_1.isExploreError)).toEqual([]);
222
+ expect(errorOutput).not.toEqual(expect.arrayContaining([
223
+ expect.stringContaining('Skipping warehouse column validation'),
224
+ ]));
225
+ });
226
+ test('does not warn about column validation when it was not requested', async () => {
227
+ const result = await (0, compile_1.compile)({
228
+ ...baseOptions(tempDir),
229
+ skipWarehouseCatalog: true,
230
+ });
231
+ expect(getWarehouseClient_1.default).not.toHaveBeenCalled();
232
+ expect(warehouses_1.validateWarehouseColumnReferences).not.toHaveBeenCalled();
233
+ expect(result.filter(common_1.isExploreError)).toEqual([]);
234
+ expect(errorOutput).not.toEqual(expect.arrayContaining([expect.stringContaining(SKIP_WARNING)]));
235
+ });
236
+ describe('compile output for warehouse column warnings', () => {
237
+ const WAREHOUSE_WARNING = 'Warehouse rejected column reference TABLE.rolling_30d_avg_sales in model "my_model"';
238
+ test('renders ERROR for a warehouse rejection when partial compilation is enabled', async () => {
239
+ vi.stubEnv('PARTIAL_COMPILATION_ENABLED', 'true');
240
+ setupWarehouseClient();
241
+ mockProberToAppendWarning(WAREHOUSE_WARNING);
242
+ await (0, compile_1.compile)({
243
+ ...baseOptions(tempDir),
244
+ validateWarehouseColumns: true,
245
+ });
246
+ expect(errorOutput).toEqual(expect.arrayContaining([
247
+ expect.stringContaining(`- ERROR> my_model : ${WAREHOUSE_WARNING}`),
248
+ expect.stringContaining('Compiled 1 explores, SUCCESS=0 ERRORS=1'),
249
+ ]));
250
+ });
251
+ test('renders ERROR for a warehouse rejection when partial compilation is disabled', async () => {
252
+ vi.stubEnv('PARTIAL_COMPILATION_ENABLED', 'false');
253
+ setupWarehouseClient();
254
+ mockProberToAppendWarning(WAREHOUSE_WARNING);
255
+ const result = await (0, compile_1.compile)({
256
+ ...baseOptions(tempDir),
257
+ validateWarehouseColumns: true,
258
+ });
259
+ expect(errorOutput).toEqual(expect.arrayContaining([
260
+ expect.stringContaining(`- ERROR> my_model : ${WAREHOUSE_WARNING}`),
261
+ expect.stringContaining('Compiled 1 explores, SUCCESS=0 ERRORS=1'),
262
+ ]));
263
+ // The typed diagnostic must still reach backend validation untouched
264
+ expect(result.filter(common_1.isExploreError)).toEqual([]);
265
+ const warningTypes = result.flatMap((explore) => (0, common_1.isExploreError)(explore)
266
+ ? []
267
+ : (explore.warnings ?? []).map((warning) => warning.type));
268
+ expect(warningTypes).toEqual([
269
+ common_1.InlineErrorType.WAREHOUSE_COLUMN_ERROR,
270
+ ]);
271
+ });
272
+ test('keeps generic warnings hidden when partial compilation is disabled', async () => {
273
+ vi.stubEnv('PARTIAL_COMPILATION_ENABLED', 'false');
274
+ vi.mocked(validation_1.validateDbtModel).mockResolvedValue({
275
+ valid: [modelWithDuplicateMetricName],
276
+ invalid: [],
277
+ skipped: [],
278
+ });
279
+ await (0, compile_1.compile)({
280
+ ...baseOptions(tempDir),
281
+ skipWarehouseCatalog: true,
282
+ });
283
+ expect(errorOutput).toEqual(expect.arrayContaining([
284
+ expect.stringContaining('- SUCCESS> my_model'),
285
+ expect.stringContaining('Compiled 1 explores, SUCCESS=1 ERRORS=0'),
286
+ ]));
287
+ expect(errorOutput).not.toEqual(expect.arrayContaining([
288
+ expect.stringContaining('PARTIAL_SUCCESS'),
289
+ ]));
290
+ expect(errorOutput).not.toEqual(expect.arrayContaining([
291
+ expect.stringContaining('Skipped metric "id"'),
292
+ ]));
293
+ });
294
+ test('renders generic warnings when partial compilation is enabled', async () => {
295
+ vi.stubEnv('PARTIAL_COMPILATION_ENABLED', 'true');
296
+ vi.mocked(validation_1.validateDbtModel).mockResolvedValue({
297
+ valid: [modelWithDuplicateMetricName],
298
+ invalid: [],
299
+ skipped: [],
300
+ });
301
+ await (0, compile_1.compile)({
302
+ ...baseOptions(tempDir),
303
+ skipWarehouseCatalog: true,
304
+ });
305
+ expect(errorOutput).toEqual(expect.arrayContaining([
306
+ expect.stringContaining('- PARTIAL_SUCCESS> my_model'),
307
+ expect.stringContaining('Skipped metric "id"'),
308
+ expect.stringContaining('Compiled 1 explores, SUCCESS=0 PARTIAL_SUCCESS=1 ERRORS=0'),
309
+ ]));
310
+ });
311
+ test('renders the warehouse error and generic warnings when partial compilation is enabled', async () => {
312
+ vi.stubEnv('PARTIAL_COMPILATION_ENABLED', 'true');
313
+ vi.mocked(validation_1.validateDbtModel).mockResolvedValue({
314
+ valid: [modelWithDuplicateMetricName],
315
+ invalid: [],
316
+ skipped: [],
317
+ });
318
+ setupWarehouseClient();
319
+ mockProberToAppendWarning(WAREHOUSE_WARNING);
320
+ await (0, compile_1.compile)({
321
+ ...baseOptions(tempDir),
322
+ validateWarehouseColumns: true,
323
+ });
324
+ expect(errorOutput).toEqual(expect.arrayContaining([
325
+ expect.stringContaining(`- ERROR> my_model : ${WAREHOUSE_WARNING}`),
326
+ expect.stringContaining('Skipped metric "id"'),
327
+ expect.stringContaining('Compiled 1 explores, SUCCESS=0 ERRORS=1'),
328
+ ]));
329
+ });
330
+ test('renders only the warehouse error when partial compilation is disabled and generic warnings exist', async () => {
331
+ vi.stubEnv('PARTIAL_COMPILATION_ENABLED', 'false');
332
+ vi.mocked(validation_1.validateDbtModel).mockResolvedValue({
333
+ valid: [modelWithDuplicateMetricName],
334
+ invalid: [],
335
+ skipped: [],
336
+ });
337
+ setupWarehouseClient();
338
+ mockProberToAppendWarning(WAREHOUSE_WARNING);
339
+ await (0, compile_1.compile)({
340
+ ...baseOptions(tempDir),
341
+ validateWarehouseColumns: true,
342
+ });
343
+ expect(errorOutput).toEqual(expect.arrayContaining([
344
+ expect.stringContaining(`- ERROR> my_model : ${WAREHOUSE_WARNING}`),
345
+ expect.stringContaining('Compiled 1 explores, SUCCESS=0 ERRORS=1'),
346
+ ]));
347
+ expect(errorOutput).not.toEqual(expect.arrayContaining([
348
+ expect.stringContaining('Skipped metric "id"'),
349
+ ]));
350
+ });
351
+ });
352
+ describe('dbt cloud cli', () => {
353
+ beforeEach(() => {
354
+ vi.mocked(getDbtVersion_1.tryGetDbtVersion).mockResolvedValue({
355
+ success: true,
356
+ version: {
357
+ verboseVersion: 'dbt Cloud CLI - 0.38.0',
358
+ versionOption: common_1.DbtVersionOptionLatest.LATEST,
359
+ isDbtCloudCLI: true,
360
+ isDbtFusion: false,
361
+ },
362
+ });
363
+ });
364
+ test('skips column probing and warns when validation was requested', async () => {
365
+ const warehouseClient = setupWarehouseClient();
366
+ const result = await (0, compile_1.compile)({
367
+ ...baseOptions(tempDir),
368
+ validateWarehouseColumns: true,
369
+ });
370
+ // Catalog fetching required by dbt Cloud CLI is preserved
371
+ expect(getWarehouseClient_1.default).toHaveBeenCalledWith(expect.objectContaining({ isDbtCloudCLI: true }));
372
+ expect(warehouseClient.getCatalog).toHaveBeenCalledTimes(1);
373
+ expect(warehouses_1.validateWarehouseColumnReferences).not.toHaveBeenCalled();
374
+ expect(result.filter(common_1.isExploreError)).toEqual([]);
375
+ expect(result.map((explore) => explore.name)).toEqual(['my_model']);
376
+ expect(errorOutput).toEqual(expect.arrayContaining([
377
+ expect.stringContaining(DBT_CLOUD_SKIP_WARNING),
378
+ ]));
379
+ });
380
+ test('does not warn or probe when validation was not requested', async () => {
381
+ const warehouseClient = setupWarehouseClient();
382
+ await (0, compile_1.compile)(baseOptions(tempDir));
383
+ expect(warehouseClient.getCatalog).toHaveBeenCalledTimes(1);
384
+ expect(warehouses_1.validateWarehouseColumnReferences).not.toHaveBeenCalled();
385
+ expect(errorOutput).not.toEqual(expect.arrayContaining([
386
+ expect.stringContaining('Skipping warehouse column validation'),
387
+ ]));
388
+ });
389
+ test('prefers the skip-warehouse-catalog warning when both apply', async () => {
390
+ await (0, compile_1.compile)({
391
+ ...baseOptions(tempDir),
392
+ skipWarehouseCatalog: true,
393
+ validateWarehouseColumns: true,
394
+ });
395
+ expect(getWarehouseClient_1.default).not.toHaveBeenCalled();
396
+ expect(warehouses_1.validateWarehouseColumnReferences).not.toHaveBeenCalled();
397
+ const skipWarnings = errorOutput.filter((line) => line.includes('Skipping warehouse column validation'));
398
+ expect(skipWarnings).toHaveLength(1);
399
+ expect(skipWarnings[0]).toContain(SKIP_WARNING);
400
+ });
401
+ });
402
+ describe('lightdash yml projects', () => {
403
+ beforeEach(async () => {
404
+ vi.mocked(loader_1.loadLightdashModels).mockResolvedValue([
405
+ lightdashYmlModel,
406
+ ]);
407
+ await promises_1.default.writeFile(path.join(tempDir, 'lightdash.config.yml'), 'warehouse:\n type: postgres\n');
408
+ });
409
+ test('warns that warehouse column validation is not supported', async () => {
410
+ const result = await (0, compile_1.compile)({
411
+ ...baseOptions(tempDir),
412
+ validateWarehouseColumns: true,
413
+ });
414
+ expect(result.filter(common_1.isExploreError)).toEqual([]);
415
+ expect(result.map((explore) => explore.name)).toEqual([
416
+ 'yml_model',
417
+ ]);
418
+ expect(getWarehouseClient_1.default).not.toHaveBeenCalled();
419
+ expect(warehouses_1.validateWarehouseColumnReferences).not.toHaveBeenCalled();
420
+ expect(errorOutput).toEqual(expect.arrayContaining([
421
+ expect.stringContaining(YML_SKIP_WARNING),
422
+ ]));
423
+ });
424
+ test('does not warn when warehouse column validation was not requested', async () => {
425
+ await (0, compile_1.compile)(baseOptions(tempDir));
426
+ expect(errorOutput).not.toEqual(expect.arrayContaining([
427
+ expect.stringContaining('Skipping warehouse column validation'),
428
+ ]));
429
+ });
430
+ test('warns exactly once when --skip-warehouse-catalog is also supplied', async () => {
431
+ await (0, compile_1.compile)({
432
+ ...baseOptions(tempDir),
433
+ skipWarehouseCatalog: true,
434
+ validateWarehouseColumns: true,
435
+ });
436
+ const skipWarnings = errorOutput.filter((line) => line.includes('Skipping warehouse column validation'));
437
+ expect(skipWarnings).toHaveLength(1);
438
+ expect(skipWarnings[0]).toContain(YML_SKIP_WARNING);
439
+ });
440
+ });
441
+ });