@@ -251,12 +251,12 @@ view(\`V\`, {
251
251
v___activity_balance : 125 ,
252
252
} ] , { compiler, joinGraph, cubeEvaluator } ) ;
253
253
254
- // expect(sql).toMatch(/AS "a"/);
255
- // expect(sql).toMatch(/AS "b"/);
256
- // expect(sql).toMatch(/AS "d"/);
257
- // expect(sql).toMatch(/ON "a".id = "b".id/);
258
- // expect(sql).toMatch(/ON "b".id = "d".id/);
259
- // expect(sql).not.toMatch(/AS "e"/);
254
+ expect ( sql ) . toMatch ( / A S " a " / ) ;
255
+ expect ( sql ) . toMatch ( / A S " b " / ) ;
256
+ expect ( sql ) . toMatch ( / A S " d " / ) ;
257
+ expect ( sql ) . toMatch ( / O N " a " .i d = " b " .i d / ) ;
258
+ expect ( sql ) . toMatch ( / O N " b " .i d = " d " .i d / ) ;
259
+ expect ( sql ) . not . toMatch ( / A S " e " / ) ;
260
260
} ) ;
261
261
262
262
it ( 'correct join for simple view F-dimension' , async ( ) => {
@@ -269,14 +269,14 @@ view(\`V\`, {
269
269
v___plan_code : 'PLAN_CODE' ,
270
270
} ] , { compiler, joinGraph, cubeEvaluator } ) ;
271
271
272
- // expect(sql).toMatch(/AS "a"/);
273
- // expect(sql).toMatch(/AS "c"/);
274
- // expect(sql).toMatch(/AS "f"/);
275
- // expect(sql).toMatch(/ON "a".id = "c".id/);
276
- // expect(sql).toMatch(/ON "c".plan_id = "f".plan_id/);
277
- // expect(sql).not.toMatch(/AS "b"/);
278
- // expect(sql).not.toMatch(/AS "d"/);
279
- // expect(sql).not.toMatch(/AS "e"/);
272
+ expect ( sql ) . toMatch ( / A S " a " / ) ;
273
+ expect ( sql ) . toMatch ( / A S " c " / ) ;
274
+ expect ( sql ) . toMatch ( / A S " f " / ) ;
275
+ expect ( sql ) . toMatch ( / O N " a " .i d = " c " .i d / ) ;
276
+ expect ( sql ) . toMatch ( / O N " c " .p l a n _ i d = " f " .p l a n _ i d / ) ;
277
+ expect ( sql ) . not . toMatch ( / A S " b " / ) ;
278
+ expect ( sql ) . not . toMatch ( / A S " d " / ) ;
279
+ expect ( sql ) . not . toMatch ( / A S " e " / ) ;
280
280
} ) ;
281
281
282
282
it ( 'correct join for view F-dimension + B-dimension' , async ( ) => {
@@ -290,16 +290,16 @@ view(\`V\`, {
290
290
v___activity_balance : 125 ,
291
291
} ] , { compiler, joinGraph, cubeEvaluator } ) ;
292
292
293
- // expect(sql).toMatch(/AS "a"/);
294
- // expect(sql).toMatch(/AS "c"/);
295
- // expect(sql).toMatch(/AS "f"/);
296
- // expect(sql).toMatch(/AS "b"/);
297
- // expect(sql).toMatch(/AS "d"/);
298
- // expect(sql).toMatch(/ON "a".id = "c".id/);
299
- // expect(sql).toMatch(/ON "a".id = "b".id/);
300
- // expect(sql).toMatch(/ON "c".plan_id = "f".plan_id/);
301
- // expect(sql).toMatch(/ON "b".id = "d".id/);
302
- // expect(sql).not.toMatch(/AS "e"/);
293
+ expect ( sql ) . toMatch ( / A S " a " / ) ;
294
+ expect ( sql ) . toMatch ( / A S " c " / ) ;
295
+ expect ( sql ) . toMatch ( / A S " f " / ) ;
296
+ expect ( sql ) . toMatch ( / A S " b " / ) ;
297
+ expect ( sql ) . toMatch ( / A S " d " / ) ;
298
+ expect ( sql ) . toMatch ( / O N " a " .i d = " c " .i d / ) ;
299
+ expect ( sql ) . toMatch ( / O N " a " .i d = " b " .i d / ) ;
300
+ expect ( sql ) . toMatch ( / O N " c " .p l a n _ i d = " f " .p l a n _ i d / ) ;
301
+ expect ( sql ) . toMatch ( / O N " b " .i d = " d " .i d / ) ;
302
+ expect ( sql ) . not . toMatch ( / A S " e " / ) ;
303
303
} ) ;
304
304
305
305
it ( 'correct join for view B-dimension + F-dimension' , async ( ) => {
@@ -313,16 +313,16 @@ view(\`V\`, {
313
313
v___plan_code : 'PLAN_CODE' ,
314
314
} ] , { compiler, joinGraph, cubeEvaluator } ) ;
315
315
316
- // expect(sql).toMatch(/AS "a"/);
317
- // expect(sql).toMatch(/AS "c"/);
318
- // expect(sql).toMatch(/AS "f"/);
319
- // expect(sql).toMatch(/AS "b"/);
320
- // expect(sql).toMatch(/AS "d"/);
321
- // expect(sql).toMatch(/ON "a".id = "c".id/);
322
- // expect(sql).toMatch(/ON "a".id = "b".id/);
323
- // expect(sql).toMatch(/ON "c".plan_id = "f".plan_id/);
324
- // expect(sql).toMatch(/ON "b".id = "d".id/);
325
- // expect(sql).not.toMatch(/AS "e"/);
316
+ expect ( sql ) . toMatch ( / A S " a " / ) ;
317
+ expect ( sql ) . toMatch ( / A S " c " / ) ;
318
+ expect ( sql ) . toMatch ( / A S " f " / ) ;
319
+ expect ( sql ) . toMatch ( / A S " b " / ) ;
320
+ expect ( sql ) . toMatch ( / A S " d " / ) ;
321
+ expect ( sql ) . toMatch ( / O N " a " .i d = " c " .i d / ) ;
322
+ expect ( sql ) . toMatch ( / O N " a " .i d = " b " .i d / ) ;
323
+ expect ( sql ) . toMatch ( / O N " c " .p l a n _ i d = " f " .p l a n _ i d / ) ;
324
+ expect ( sql ) . toMatch ( / O N " b " .i d = " d " .i d / ) ;
325
+ expect ( sql ) . not . toMatch ( / A S " e " / ) ;
326
326
} ) ;
327
327
}
328
328
} ) ;
0 commit comments