Skip to content

Commit 75e9cdd

Browse files
committed
skip test for tesseract
1 parent 239d11c commit 75e9cdd

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

packages/cubejs-schema-compiler/test/integration/postgres/pre-aggregations.test.ts

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,31 +3200,38 @@ describe('PreAggregations', () => {
32003200
});
32013201
});
32023202

3203-
it('rollupJoin pre-aggregation with nested joins via cube (A->B->C)', async () => {
3204-
await compiler.compile();
3205-
3206-
const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, {
3207-
dimensions: ['cube_a.dim_a', 'cube_b.dim_b', 'cube_c.dim_c'],
3208-
timezone: 'America/Los_Angeles',
3209-
preAggregationsSchema: ''
3203+
if (getEnv('nativeSqlPlanner')) {
3204+
it.skip('FIXME(tesseract): rollupJoin pre-aggregation with nested joins via cube (A->B->C)', () => {
3205+
// Need to investigate tesseract internals of how pre-aggs members are resolved and how
3206+
// rollups are used to construct rollupJoins.
32103207
});
3208+
} else {
3209+
it('rollupJoin pre-aggregation with nested joins via cube (A->B->C)', async () => {
3210+
await compiler.compile();
32113211

3212-
const queryAndParams = query.buildSqlAndParams();
3213-
console.log(queryAndParams);
3214-
const preAggregationsDescription: any = query.preAggregations?.preAggregationsDescription();
3215-
console.log(preAggregationsDescription);
3216-
expect(preAggregationsDescription.length).toBe(0);
3212+
const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, {
3213+
dimensions: ['cube_a.dim_a', 'cube_b.dim_b', 'cube_c.dim_c'],
3214+
timezone: 'America/Los_Angeles',
3215+
preAggregationsSchema: ''
3216+
});
32173217

3218-
expect(query.preAggregations?.preAggregationForQuery).toBeUndefined();
3218+
const queryAndParams = query.buildSqlAndParams();
3219+
console.log(queryAndParams);
3220+
const preAggregationsDescription: any = query.preAggregations?.preAggregationsDescription();
3221+
console.log(preAggregationsDescription);
3222+
expect(preAggregationsDescription.length).toBe(0);
32193223

3220-
return dbRunner.evaluateQueryWithPreAggregations(query).then(res => {
3221-
expect(res).toEqual(
3222-
[{
3223-
cube_a__dim_a: 'dim_a',
3224-
cube_b__dim_b: 'dim_b',
3225-
cube_c__dim_c: 'dim_c',
3226-
}]
3227-
);
3224+
expect(query.preAggregations?.preAggregationForQuery).toBeUndefined();
3225+
3226+
return dbRunner.evaluateQueryWithPreAggregations(query).then(res => {
3227+
expect(res).toEqual(
3228+
[{
3229+
cube_a__dim_a: 'dim_a',
3230+
cube_b__dim_b: 'dim_b',
3231+
cube_c__dim_c: 'dim_c',
3232+
}]
3233+
);
3234+
});
32283235
});
3229-
});
3236+
}
32303237
});

0 commit comments

Comments
 (0)