diff --git a/.github/workflows/drivers-tests.yml b/.github/workflows/drivers-tests.yml index 56ccaacaad269..c9df773f44cb5 100644 --- a/.github/workflows/drivers-tests.yml +++ b/.github/workflows/drivers-tests.yml @@ -68,9 +68,6 @@ on: - 'true' - 'false' -env: - USE_TESSERACT_SQL_PLANNER: false - jobs: latest-tag-sha: runs-on: ubuntu-24.04 @@ -268,6 +265,12 @@ jobs: - snowflake-export-bucket-azure-via-storage-integration - snowflake-export-bucket-gcs - snowflake-export-bucket-gcs-prefix + use_tesseract_sql_planner: [ false ] + include: + - database: postgres + use_tesseract_sql_planner: true + - database: bigquery-export-bucket-gcs + use_tesseract_sql_planner: true fail-fast: false steps: @@ -334,7 +337,7 @@ jobs: (contains(env.CLOUD_DATABASES, matrix.database) && env.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY != '') || (!contains(env.CLOUD_DATABASES, matrix.database)) env: - DRIVERS_TESTS_CUBEJS_TESSERACT_SQL_PLANNER: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.use_tesseract_sql_planner || env.USE_TESSERACT_SQL_PLANNER }} + DRIVERS_TESTS_CUBEJS_TESSERACT_SQL_PLANNER: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.use_tesseract_sql_planner) || matrix.use_tesseract_sql_planner }} # Athena DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY: ${{ secrets.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 1b25207fd35e0..8e19a5d033c5a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -416,6 +416,11 @@ jobs: 'clickhouse', 'druid', 'elasticsearch', 'mssql', 'mysql', 'postgres', 'prestodb', 'mysql-aurora-serverless', 'crate', 'mongobi', 'firebolt', 'dremio', 'vertica' ] + use_tesseract_sql_planner: [ false ] + include: + - db: postgres + node-version: 22.x + use_tesseract_sql_planner: true fail-fast: false steps: @@ -481,6 +486,8 @@ jobs: (contains(env.CLOUD_DATABASES, matrix.db) && env.DRIVERS_TESTS_ATHENA_CUBEJS_AWS_KEY != '') || (!contains(env.CLOUD_DATABASES, matrix.db)) env: + CUBEJS_TESSERACT_SQL_PLANNER: ${{ matrix.use_tesseract_sql_planner }} + # Firebolt Integration DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ENGINE_NAME: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_FIREBOLT_ENGINE_NAME }} DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_NAME: ${{ secrets.DRIVERS_TESTS_FIREBOLT_CUBEJS_DB_NAME }} @@ -507,13 +514,13 @@ jobs: ./.github/actions/codecov-fix.sh - name: Combine all fixed LCOV files run: | - echo "" > ./combined-integration-${{ matrix.db }}.lcov + echo "" > ./combined-integration-${{ matrix.db }}-${{ matrix.use_tesseract_sql_planner }}.lcov find ./packages -type f -name lcov.fixed.info -exec cat {} + >> ./combined-integration-${{ matrix.db }}.lcov || true - name: Upload coverage artifact uses: actions/upload-artifact@v4 with: - name: coverage-integration-${{ matrix.db }} - path: ./combined-integration-${{ matrix.db }}.lcov + name: coverage-integration-${{ matrix.db }}-${{ matrix.use_tesseract_sql_planner }} + path: ./combined-integration-${{ matrix.db }}-${{ matrix.use_tesseract_sql_planner }}.lcov integration-smoke: needs: [latest-tag-sha, build-cubestore, build-native-linux] diff --git a/packages/cubejs-schema-compiler/test/integration/postgres/multiple-join-paths.test.ts b/packages/cubejs-schema-compiler/test/integration/postgres/multiple-join-paths.test.ts index 63543a47459d5..20a9934c349f7 100644 --- a/packages/cubejs-schema-compiler/test/integration/postgres/multiple-join-paths.test.ts +++ b/packages/cubejs-schema-compiler/test/integration/postgres/multiple-join-paths.test.ts @@ -1,3 +1,4 @@ +import { getEnv } from '@cubejs-backend/shared'; import { PostgresQuery } from '../../../src/adapter/PostgresQuery'; import { prepareJsCompiler } from '../../unit/PrepareCompiler'; import { DataSchemaCompiler } from '../../../src/compiler/DataSchemaCompiler'; @@ -612,33 +613,45 @@ describe('Multiple join paths', () => { }, ]; for (const { preAggregationId, addTimeRange, expectedData } of preAggregationTests) { - // eslint-disable-next-line no-loop-func - it(`pre-aggregation ${preAggregationId} should match its own references`, async () => { - // Always not using range, because reference query would have no range to start from - // but should match pre-aggregation anyway - const query = makeReferenceQueryFor(preAggregationId); - - const preAggregationsDescription: any = query.preAggregations?.preAggregationsDescription(); - const preAggregationFromQuery = preAggregationsDescription.find(p => p.preAggregationId === preAggregationId); - if (preAggregationFromQuery === undefined) { - throw expect(preAggregationFromQuery).toBeDefined(); - } - }); - - // eslint-disable-next-line no-loop-func - it(`pre-aggregation ${preAggregationId} reference query should be executable`, async () => { - // Adding date range for rolling window measure - const query = makeReferenceQueryFor(preAggregationId, addTimeRange); - - const preAggregationsDescription: any = query.preAggregations?.preAggregationsDescription(); - const preAggregationFromQuery = preAggregationsDescription.find(p => p.preAggregationId === preAggregationId); - if (preAggregationFromQuery === undefined) { - throw expect(preAggregationFromQuery).toBeDefined(); - } + if (!getEnv('nativeSqlPlanner')) { + // eslint-disable-next-line no-loop-func + it(`pre-aggregation ${preAggregationId} should match its own references`, async () => { + // Always not using range, because reference query would have no range to start from + // but should match pre-aggregation anyway + const query = makeReferenceQueryFor(preAggregationId); + + const preAggregationsDescription: any = query.preAggregations?.preAggregationsDescription(); + const preAggregationFromQuery = preAggregationsDescription.find(p => p.preAggregationId === preAggregationId); + if (preAggregationFromQuery === undefined) { + throw expect(preAggregationFromQuery).toBeDefined(); + } + }); + } else { + it.skip(`FIXME(tesseract): pre-aggregation ${preAggregationId} should match its own references`, async () => { + // This should be implemented in Tesseract. + }); + } - const res = await testWithPreAggregation(preAggregationFromQuery, query); - expect(res).toEqual(expectedData); - }); + if (!getEnv('nativeSqlPlanner')) { + // eslint-disable-next-line no-loop-func + it(`pre-aggregation ${preAggregationId} reference query should be executable`, async () => { + // Adding date range for rolling window measure + const query = makeReferenceQueryFor(preAggregationId, addTimeRange); + + const preAggregationsDescription: any = query.preAggregations?.preAggregationsDescription(); + const preAggregationFromQuery = preAggregationsDescription.find(p => p.preAggregationId === preAggregationId); + if (preAggregationFromQuery === undefined) { + throw expect(preAggregationFromQuery).toBeDefined(); + } + + const res = await testWithPreAggregation(preAggregationFromQuery, query); + expect(res).toEqual(expectedData); + }); + } else { + it.skip(`FIXME(tesseract): pre-aggregation ${preAggregationId} reference query should be executable`, async () => { + // This should be implemented in Tesseract. + }); + } } }); diff --git a/packages/cubejs-schema-compiler/test/integration/postgres/pre-aggregations.test.ts b/packages/cubejs-schema-compiler/test/integration/postgres/pre-aggregations.test.ts index 544025ac15dd5..bf603e2995947 100644 --- a/packages/cubejs-schema-compiler/test/integration/postgres/pre-aggregations.test.ts +++ b/packages/cubejs-schema-compiler/test/integration/postgres/pre-aggregations.test.ts @@ -570,7 +570,10 @@ describe('PreAggregations', () => { }); if (getEnv('nativeSqlPlanner')) { - it('simple pre-aggregation proxy time dimension', () => compiler.compile().then(() => { + it.skip('FIXME(tesseract): simple pre-aggregation proxy time dimension', () => { + // Should work after fallback for pre-aggregations is fully turned off + }); + /* it('simple pre-aggregation proxy time dimension', () => compiler.compile().then(() => { const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, { measures: [ 'visitors.count' @@ -616,7 +619,7 @@ describe('PreAggregations', () => { ] ); }); - })); + })); */ } it('simple pre-aggregation (allowNonStrictDateRangeMatch: true)', async () => { @@ -1078,44 +1081,51 @@ describe('PreAggregations', () => { }); }); - it('multiplied measure no match', async () => { - await compiler.compile(); + if (!getEnv('nativeSqlPlanner')) { + it('multiplied measure no match', async () => { + await compiler.compile(); - const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, { - measures: [ - 'visitors.count' - ], - dimensions: ['visitor_checkins.source'], - order: [{ - id: 'visitor_checkins.source' - }], - timezone: 'America/Los_Angeles', - preAggregationsSchema: '' - }); + const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, { + measures: [ + 'visitors.count' + ], + dimensions: ['visitor_checkins.source'], + order: [{ + id: 'visitor_checkins.source' + }], + timezone: 'America/Los_Angeles', + preAggregationsSchema: '' + }); - const queryAndParams = query.buildSqlAndParams(); - console.log(queryAndParams); - expect(queryAndParams[0]).toMatch(/count\(distinct/ig); - expect(queryAndParams[0]).toMatch(/visitors_default/ig); - const preAggregationsDescription = query.preAggregations?.preAggregationsDescription(); - console.log(preAggregationsDescription); - expect((preAggregationsDescription).filter(p => p.type === 'rollup').length).toBe(0); + const queryAndParams = query.buildSqlAndParams(); + console.log(queryAndParams); + expect(queryAndParams[0]).toMatch(/count\(distinct/ig); + expect(queryAndParams[0]).toMatch(/visitors_default/ig); + const preAggregationsDescription = query.preAggregations?.preAggregationsDescription(); + console.log(preAggregationsDescription); + expect((preAggregationsDescription).filter(p => p.type === 'rollup').length).toBe(0); - return dbRunner.evaluateQueryWithPreAggregations(query).then(res => { - expect(res).toEqual( - [ - { - vc__source: 'google', - visitors__count: '1' - }, - { - vc__source: null, - visitors__count: '6' - }, - ] - ); + return dbRunner.evaluateQueryWithPreAggregations(query).then(res => { + expect(res).toEqual( + [ + { + vc__source: 'google', + visitors__count: '1' + }, + { + vc__source: null, + visitors__count: '6' + }, + ] + ); + }); }); - }); + } else { + it.skip('FIXME(tesseract): multiplied measure no match', async () => { + // This should be fixed in Tesseract. + + }); + } it('multiplied measure match', async () => { await compiler.compile(); diff --git a/packages/cubejs-schema-compiler/test/integration/postgres/sql-generation.test.ts b/packages/cubejs-schema-compiler/test/integration/postgres/sql-generation.test.ts index b284269b813e4..9edd2dcd331b9 100644 --- a/packages/cubejs-schema-compiler/test/integration/postgres/sql-generation.test.ts +++ b/packages/cubejs-schema-compiler/test/integration/postgres/sql-generation.test.ts @@ -3468,32 +3468,38 @@ SELECT 1 AS revenue, cast('2024-01-01' AS timestamp) as time UNION ALL }] )); - it('multi stage revenue_sum_group_by_granularity and group by td with granularity', async () => runQueryTest( - { - measures: ['visitors.revenue_sum_group_by_granularity'], - dimensions: ['visitors.source'], - order: [{ - id: 'visitors.source' - }], - timezone: 'UTC', - }, - [{ - visitors__revenue_sum_group_by_granularity: '300', - visitors__source: 'google', - }, - { - visitors__revenue_sum_group_by_granularity: '300', - visitors__source: 'some', - }, - { - visitors__revenue_sum_group_by_granularity: '900', - visitors__source: null, - }, - { - visitors__revenue_sum_group_by_granularity: '500', - visitors__source: null, - }] - )); + if (!getEnv('nativeSqlPlanner')) { + it('multi stage revenue_sum_group_by_granularity and group by td with granularity', async () => runQueryTest( + { + measures: ['visitors.revenue_sum_group_by_granularity'], + dimensions: ['visitors.source'], + order: [{ + id: 'visitors.source' + }], + timezone: 'UTC', + }, + [{ + visitors__revenue_sum_group_by_granularity: '300', + visitors__source: 'google', + }, + { + visitors__revenue_sum_group_by_granularity: '300', + visitors__source: 'some', + }, + { + visitors__revenue_sum_group_by_granularity: '900', + visitors__source: null, + }, + { + visitors__revenue_sum_group_by_granularity: '500', + visitors__source: null, + }] + )); + } else { + it.skip('FIXME(tesseract): multi stage revenue_sum_group_by_granularity and group by td with granularity', () => { + // Should be fixed in tesseract + }); + } it('multi stage complex graph with time dimension no granularity', async () => runQueryTest( { @@ -4287,69 +4293,81 @@ cubes: type: string `); - it('querying cube dimension that require transitive joins', async () => { - await compiler.compile(); - const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, { - measures: [], - dimensions: [ - 'test_facts.reporting_date', - 'test_facts.merchant_sk', - 'test_facts.product_sk', - 'test_facts.acquisition_channel' - ], - order: [{ - id: 'test_facts.acquisition_channel' - }], - timezone: 'America/Los_Angeles' - }); - - const res = await dbRunner.testQuery(query.buildSqlAndParams()); - console.log(JSON.stringify(res)); - - expect(res).toEqual([ - { - test_facts__acquisition_channel: 'Organic', - test_facts__merchant_sk: 101, - test_facts__product_sk: 201, - test_facts__reporting_date: '2023-01-01T00:00:00.000Z', - }, - { - test_facts__acquisition_channel: 'Paid', - test_facts__merchant_sk: 101, - test_facts__product_sk: 202, - test_facts__reporting_date: '2023-01-01T00:00:00.000Z', - }, - { - test_facts__acquisition_channel: 'Referral', - test_facts__merchant_sk: 102, - test_facts__product_sk: 201, - test_facts__reporting_date: '2023-01-02T00:00:00.000Z', - }, - ]); - }); - - it('querying cube with transitive joins with loop', async () => { - await compiler.compile(); - - try { + if (!getEnv('nativeSqlPlanner')) { + it('querying cube dimension that require transitive joins', async () => { + await compiler.compile(); const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, { measures: [], dimensions: [ - 'alpha_facts.reporting_date', - 'delta_bridge.b_name', - 'alpha_facts.channel' + 'test_facts.reporting_date', + 'test_facts.merchant_sk', + 'test_facts.product_sk', + 'test_facts.acquisition_channel' ], order: [{ - id: 'alpha_facts.reporting_date' + id: 'test_facts.acquisition_channel' }], timezone: 'America/Los_Angeles' }); - await dbRunner.testQuery(query.buildSqlAndParams()); - throw new Error('Should have thrown an error'); - } catch (err: any) { - expect(err.message).toContain('Can not construct joins for the query, potential loop detected'); - } - }); + const res = await dbRunner.testQuery(query.buildSqlAndParams()); + console.log(JSON.stringify(res)); + + expect(res).toEqual([ + { + test_facts__acquisition_channel: 'Organic', + test_facts__merchant_sk: 101, + test_facts__product_sk: 201, + test_facts__reporting_date: '2023-01-01T00:00:00.000Z', + }, + { + test_facts__acquisition_channel: 'Paid', + test_facts__merchant_sk: 101, + test_facts__product_sk: 202, + test_facts__reporting_date: '2023-01-01T00:00:00.000Z', + }, + { + test_facts__acquisition_channel: 'Referral', + test_facts__merchant_sk: 102, + test_facts__product_sk: 201, + test_facts__reporting_date: '2023-01-02T00:00:00.000Z', + }, + ]); + }); + } else { + it.skip('FIXME(tesseract): querying cube dimension that require transitive joins', async () => { + // FIXME should be implemented in Tesseract + }); + } + + if (!getEnv('nativeSqlPlanner')) { + it('querying cube with transitive joins with loop', async () => { + await compiler.compile(); + + try { + const query = new PostgresQuery({ joinGraph, cubeEvaluator, compiler }, { + measures: [], + dimensions: [ + 'alpha_facts.reporting_date', + 'delta_bridge.b_name', + 'alpha_facts.channel' + ], + order: [{ + id: 'alpha_facts.reporting_date' + }], + timezone: 'America/Los_Angeles' + }); + + await dbRunner.testQuery(query.buildSqlAndParams()); + throw new Error('Should have thrown an error'); + } catch (err: any) { + expect(err.message).toContain('Can not construct joins for the query, potential loop detected'); + } + }); + } else { + it.skip('FIXME(tesseract): querying cube dimension that require transitive joins', async () => { + // FIXME should be implemented in Tesseract + }); + } }); }); diff --git a/packages/cubejs-testing-drivers/fixtures/bigquery.json b/packages/cubejs-testing-drivers/fixtures/bigquery.json index 1f5edc1b40715..e784922d2d693 100644 --- a/packages/cubejs-testing-drivers/fixtures/bigquery.json +++ b/packages/cubejs-testing-drivers/fixtures/bigquery.json @@ -172,5 +172,50 @@ "SQL API: Rollup with aliases", "SQL API: Nested Rollup over asterisk", "SQL API: Extended nested Rollup over asterisk" + ], + "tesseractSkip": [ + "must download query from the data source via memory", + "must download query from the data source via stream", + "for the Customers.RollingExternal", + "for the Customers.RollingInternal", + "for the ECommerce.SimpleAnalysisExternal", + "for the ECommerce.SimpleAnalysisInternal", + "for the ECommerce.TimeAnalysisExternal", + "for the ECommerce.TimeAnalysisInternal", + "querying Customers: dimensions + order + total + offset", + "querying ECommerce: dimensions + order + total + offset", + "querying Products: dimensions -- doesn't work wo ordering", + "querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- rounding in athena", + "querying ECommerce: total sales, total profit by month + order (date) + total -- doesn't work with the BigQuery", + "querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- noisy test", + "querying BigECommerce: null sum", + "querying BigECommerce: null boolean", + "querying BigECommerce: rolling window by 2 day without date range", + "querying BigECommerce: rolling window by 2 month without date range", + "querying BigECommerce: rolling window YTD without date range", + "SQL API: reuse params", + "SQL API: Complex Rollup", + "SQL API: Rollup with aliases", + "SQL API: Nested Rollup over asterisk", + "SQL API: Extended nested Rollup over asterisk", + "querying Products: dimensions -- doesn't work wo ordering", + "querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- rounding in athena", + "querying ECommerce: total sales, total profit by month + order (date) + total -- doesn't work with the BigQuery", + "querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- noisy test", + "querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension", + "querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension", + "pre-aggregations Customers: running total without time dimension", + "querying BigECommerce: null boolean", + "querying BigECommerce: rolling count_distinct_approx window by 2 day", + "querying BigECommerce: rolling count_distinct_approx window by 2 week", + "querying BigECommerce: rolling count_distinct_approx window by 2 month", + "querying BigECommerce: totalProfitYearAgo", + "SQL API: post-aggregate percentage of total", + "SQL API: Simple Rollup", + "SQL API: Rollup over exprs", + "SQL API: Nested Rollup", + "SQL API: Nested Rollup with aliases", + "SQL API: Timeshift measure from cube", + "SQL API: SQL push down push to cube quoted alias" ] } diff --git a/packages/cubejs-testing-drivers/fixtures/postgres.json b/packages/cubejs-testing-drivers/fixtures/postgres.json index 94ad1dd94428e..dcd93ca11a6db 100644 --- a/packages/cubejs-testing-drivers/fixtures/postgres.json +++ b/packages/cubejs-testing-drivers/fixtures/postgres.json @@ -162,5 +162,25 @@ "querying BigECommerce: rolling window by 2 day without date range", "querying BigECommerce: rolling window by 2 month without date range", "querying BigECommerce: rolling window YTD without date range" + ], + "tesseractSkip": [ + "querying Products: dimensions -- doesn't work wo ordering", + "querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- rounding in athena", + "querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- noisy test", + "querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + no dimension", + "querying custom granularities (with preaggregation) ECommerce: totalQuantity by half_year + dimension", + "pre-aggregations Customers: running total without time dimension", + "querying BigECommerce: totalProfitYearAgo", + "SQL API: post-aggregate percentage of total", + "SQL API: Simple Rollup", + "SQL API: Complex Rollup", + "SQL API: Rollup with aliases", + "SQL API: Rollup over exprs", + "SQL API: Nested Rollup", + "SQL API: Nested Rollup with aliases", + "SQL API: Nested Rollup over asterisk", + "SQL API: Extended nested Rollup over asterisk", + "SQL API: Timeshift measure from cube", + "SQL API: SQL push down push to cube quoted alias" ] } diff --git a/packages/cubejs-testing-drivers/package.json b/packages/cubejs-testing-drivers/package.json index 20f00163fc5e9..13c6828ddc772 100644 --- a/packages/cubejs-testing-drivers/package.json +++ b/packages/cubejs-testing-drivers/package.json @@ -90,6 +90,7 @@ "fs-extra": "^11.1.1", "jest": "^29", "jsonwebtoken": "^9.0.2", + "env-var": "^6.3.0", "pg": "^8.7.3", "ramda": "^0.28.0", "testcontainers": "^10.13.0", diff --git a/packages/cubejs-testing-drivers/src/tests/testQueries.ts b/packages/cubejs-testing-drivers/src/tests/testQueries.ts index e4d52b55f04ab..06a0f5049c911 100644 --- a/packages/cubejs-testing-drivers/src/tests/testQueries.ts +++ b/packages/cubejs-testing-drivers/src/tests/testQueries.ts @@ -1,5 +1,6 @@ import { jest, expect, beforeAll, afterAll } from '@jest/globals'; import { randomBytes } from 'crypto'; +import { get } from 'env-var'; import { Client as PgClient } from 'pg'; import { BaseDriver } from '@cubejs-backend/base-driver'; import cubejs, { CubeApi } from '@cubejs-client/core'; @@ -26,6 +27,8 @@ export function testQueries(type: string, { includeIncrementalSchemaSuite, exten describe(`Queries with the @cubejs-backend/${type}-driver${extendedEnv ? ` ${extendedEnv}` : ''}`, () => { jest.setTimeout(60 * 5 * 1000); + const isTesseractEnv = get('DRIVERS_TESTS_CUBEJS_TESSERACT_SQL_PLANNER').default('false').asBool(); + const fixtures = getFixtures(type, extendedEnv); let client: CubeApi; let driver: BaseDriver; @@ -65,7 +68,9 @@ export function testQueries(type: string, { includeIncrementalSchemaSuite, exten } function execute(name: string, test: () => Promise) { - if (fixtures.skip && fixtures.skip.indexOf(name) >= 0) { + if (!isTesseractEnv && fixtures.skip && fixtures.skip.indexOf(name) >= 0) { + it.skip(name, test); + } else if (isTesseractEnv && fixtures.tesseractSkip && fixtures.tesseractSkip.indexOf(name) >= 0) { it.skip(name, test); } else { it(name, test); @@ -73,7 +78,11 @@ export function testQueries(type: string, { includeIncrementalSchemaSuite, exten } function executePg(name: string, test: (connection: PgClient) => Promise) { - if (!fixtures.cube.ports[1] || fixtures.skip && fixtures.skip.indexOf(name) >= 0) { + if (!isTesseractEnv && fixtures.skip && fixtures.skip.indexOf(name) >= 0) { + it.skip(name, () => { + // nothing to do + }); + } else if (isTesseractEnv && fixtures.tesseractSkip && fixtures.tesseractSkip.indexOf(name) >= 0) { it.skip(name, () => { // nothing to do }); @@ -1907,7 +1916,7 @@ from from "public"."BigECommerce" "BigECommerce" `); - expect(res.rows).toMatchSnapshot('post_aggregate_percentage_of_total'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: reuse params', async (connection) => { @@ -1942,7 +1951,7 @@ from order by 1, 2, 3 `); - expect(res.rows).toMatchSnapshot('simple_rollup'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Complex Rollup', async (connection) => { @@ -1956,7 +1965,7 @@ from order by 1, 2, 3, 4 `); - expect(res.rows).toMatchSnapshot('complex_rollup'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Rollup with aliases', async (connection) => { @@ -1970,7 +1979,7 @@ from order by 1, 2, 3, 4 `); - expect(res.rows).toMatchSnapshot('rollup_with_aliases'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Rollup over exprs', async (connection) => { @@ -1984,7 +1993,7 @@ from order by 1, 2, 3 `); - expect(res.rows).toMatchSnapshot('rollup_over_exprs'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Nested Rollup', async (connection) => { @@ -2003,7 +2012,7 @@ from order by 1, 2, 3 `); - expect(res.rows).toMatchSnapshot('nested_rollup'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Nested Rollup with aliases', async (connection) => { @@ -2022,7 +2031,7 @@ from order by 1, 2, 3 `); - expect(res.rows).toMatchSnapshot('nested_rollup_with_aliases'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Nested Rollup over asterisk', async (connection) => { const res = await connection.query(` @@ -2037,7 +2046,7 @@ from order by 1, 2, 3 `); - expect(res.rows).toMatchSnapshot('nested_rollup_over_asterisk'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: Extended nested Rollup over asterisk', async (connection) => { const res = await connection.query(` @@ -2056,7 +2065,7 @@ from ) q2 ORDER BY q2.order, q2.row DESC limit 100 `); - expect(res.rows).toMatchSnapshot('extended_nested_rollup_over_asterisk'); + expect(res.rows).toMatchSnapshot(); }); executePg('SQL API: metabase count cast to float32 from push down', async (connection) => { diff --git a/packages/cubejs-testing-drivers/src/types/Fixture.ts b/packages/cubejs-testing-drivers/src/types/Fixture.ts index 3ba986183ef1b..f85b5304cb396 100644 --- a/packages/cubejs-testing-drivers/src/types/Fixture.ts +++ b/packages/cubejs-testing-drivers/src/types/Fixture.ts @@ -31,4 +31,5 @@ export type Fixture = { [cube: string]: [{ name: string, [prop: string]: unknown }], }, skip?: string[], + tesseractSkip?: string[], }; diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap index c4185cbc02b0d..4f9bdb9eacb98 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/athena-export-bucket-s3-full.test.ts.snap @@ -75,7 +75,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/athena-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/athena-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap index 696d5864d11ee..5c3372406a86e 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/bigquery-export-bucket-gcs-full.test.ts.snap @@ -30,7 +30,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -833,7 +833,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -1636,7 +1636,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -2447,7 +2447,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3303,7 +3303,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/bigquery-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap index 5408ba73216ca..dd944a136f692 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-full.test.ts.snap @@ -14,7 +14,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "44", @@ -817,7 +817,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "44", @@ -1673,7 +1673,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3 SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-prefix-full.test.ts.snap index 81ae022e92d68..a9ff6773c5bec 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-export-bucket-s3-prefix-full.test.ts.snap @@ -14,7 +14,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3-prefix SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3-prefix SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "44", @@ -817,7 +817,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3-prefix SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3-prefix SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "44", @@ -1673,7 +1673,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver export-bucket-s3-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap index 876500d525120..130f668cefdbe 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/clickhouse-full.test.ts.snap @@ -14,7 +14,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "44", @@ -817,7 +817,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "44", @@ -1673,7 +1673,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/clickhouse-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap index 5536ac59ddb91..737534ae89596 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-prefix-full.test.ts.snap index 96c4f6fe6042d..c194cd00ace93 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-azure-prefix-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-azure-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-full.test.ts.snap index ccb26104fefcc..99378eeab66be 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-prefix-full.test.ts.snap index 129ff15bd53b2..9a4a0cd6fc884 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-gcs-prefix-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-gcs-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap index 9ee352932017c..ea41f3253f19d 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3 SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-prefix-full.test.ts.snap index 663b8108366cf..e98f6c277f2d2 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-export-bucket-s3-prefix-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver export-bucket-s3-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap index 3f9d95646da5f..5bcb7a841193a 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/databricks-jdbc-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1811,7 +1811,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "44", @@ -2614,7 +2614,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -3417,7 +3417,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5222,7 +5222,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -6078,7 +6078,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/databricks-jdbc-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/mysql-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/mysql-full.test.ts.snap index c4380197bf3bc..64bc6bdc50a11 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/mysql-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/mysql-full.test.ts.snap @@ -67,7 +67,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/mysql-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/mysql-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap index 7bfe549bb279d..63addc8b0ea1b 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/postgres-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1813,7 +1813,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2277,7 +2277,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3080,7 +3080,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3883,7 +3883,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4686,7 +4686,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5489,7 +5489,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7294,7 +7294,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8150,7 +8150,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/postgres-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/postgres-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/redshift-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/redshift-export-bucket-s3-full.test.ts.snap index 5c9df8f069749..cf8194399e733 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/redshift-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/redshift-export-bucket-s3-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7270,7 +7270,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8126,7 +8126,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver export-bucket-s3 SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/redshift-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/redshift-full.test.ts.snap index c7004a6977685..acce47a4cbb79 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/redshift-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/redshift-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7270,7 +7270,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8126,7 +8126,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/redshift-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/redshift-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-encrypted-pk-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-encrypted-pk-full.test.ts.snap index fe3816af0ca56..0db13e3d75318 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-encrypted-pk-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-encrypted-pk-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver encrypted-pk SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap index d48b3808d3e60..a8788a6348340 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-prefix-full.test.ts.snap index 1a06bccf846c2..f946602247264 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-prefix-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap index 6d51f51c70165..ce03033c31a07 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-azure-via-storage-integration-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-azure-via-storage-integration SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-full.test.ts.snap index 9f447578479df..40f2e1595860d 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-prefix-full.test.ts.snap index 331a2f89b84cd..612a5c18499bd 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-gcs-prefix-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-gcs-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-full.test.ts.snap index 08cd267a3e464..623335accca24 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3 SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-prefix-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-prefix-full.test.ts.snap index 2100fbb39607f..54ff9f413db1e 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-prefix-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-export-bucket-s3-prefix-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver export-bucket-s3-prefix SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100, diff --git a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-full.test.ts.snap b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-full.test.ts.snap index 91e49a4e34b03..2b03143a85a35 100644 --- a/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-full.test.ts.snap +++ b/packages/cubejs-testing-drivers/test/__snapshots__/snowflake-full.test.ts.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Complex Rollup: complex_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Complex Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -1797,7 +1797,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Extended nested Rollup over asterisk: extended_nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Extended nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -2261,7 +2261,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Nested Rollup over asterisk: nested_rollup_over_asterisk 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Nested Rollup over asterisk 1`] = ` Array [ Object { "SUM(a.count)": "1", @@ -3064,7 +3064,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Nested Rollup with aliases: nested_rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Nested Rollup with aliases 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -3867,7 +3867,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Nested Rollup: nested_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Nested Rollup 1`] = ` Array [ Object { "SUM(a.cnt)": "1", @@ -4670,7 +4670,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Rollup over exprs: rollup_over_exprs 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Rollup over exprs 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -5473,7 +5473,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Rollup with aliases: rollup_with_aliases 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Rollup with aliases 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -7278,7 +7278,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Simple Rollup: simple_rollup 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: Simple Rollup 1`] = ` Array [ Object { "SUM(ECommerce.count)": "1", @@ -8134,7 +8134,7 @@ Array [ ] `; -exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: post-aggregate percentage of total: post_aggregate_percentage_of_total 1`] = ` +exports[`Queries with the @cubejs-backend/snowflake-driver SQL API: post-aggregate percentage of total 1`] = ` Array [ Object { "SUM(BigECommerce.percentageOfTotalForStatus)": 100,